Module

x/lodash_es/mod.ts>toPath

lodash for deno use
Latest
function toPath
import { toPath } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/mod.ts";

Converts value to a property path array.

Examples

_.toPath('a.b.c'); // => ['a', 'b', 'c']

_.toPath('a[0].b.c'); // => ['a', '0', 'b', 'c']

Parameters

value

The value to convert.