Module

x/lodash_es/src/util.js>toPath

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

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.