mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Remove references to _.
This commit is contained in:
@@ -10,17 +10,16 @@ import toString from './toString.js';
|
||||
* Converts `value` to a property path array.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Util
|
||||
* @param {*} value The value to convert.
|
||||
* @returns {Array} Returns the new property path array.
|
||||
* @example
|
||||
*
|
||||
* _.toPath('a.b.c');
|
||||
* toPath('a.b.c');
|
||||
* // => ['a', 'b', 'c']
|
||||
*
|
||||
* _.toPath('a[0].b.c');
|
||||
* toPath('a[0].b.c');
|
||||
* // => ['a', '0', 'b', 'c']
|
||||
*/
|
||||
function toPath(value) {
|
||||
|
||||
Reference in New Issue
Block a user