flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
9
VISUALIZACION/node_modules/underscore/modules/toPath.js
generated
vendored
Executable file
9
VISUALIZACION/node_modules/underscore/modules/toPath.js
generated
vendored
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
import _ from './underscore.js';
|
||||
import isArray from './isArray.js';
|
||||
|
||||
// Normalize a (deep) property `path` to array.
|
||||
// Like `_.iteratee`, this function can be customized.
|
||||
export default function toPath(path) {
|
||||
return isArray(path) ? path : [path];
|
||||
}
|
||||
_.toPath = toPath;
|
||||
Loading…
Add table
Add a link
Reference in a new issue