Converts value to a property path array.
value
The value to convert.
Returns the new property path array.
5.7.0
toPath('a.b.c')// => ['a', 'b', 'c']toPath('a[0].b.c')// => ['a', '0', 'b', 'c'] Copy
toPath('a.b.c')// => ['a', 'b', 'c']toPath('a[0].b.c')// => ['a', '0', 'b', 'c']
Converts
value
to a property path array.