All new
alle new
This commit is contained in:
1 parent
da64472251
commit
5b20adee48
1605 files changed
+396517
-1674
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
var underscore = require('./underscore.js');
|
||||
var isArray = require('./isArray.js');
|
||||
|
||||
// Normalize a (deep) property `path` to array.
|
||||
// Like `_.iteratee`, this function can be customized.
|
||||
function toPath(path) {
|
||||
return isArray(path) ? path : [path];
|
||||
}
|
||||
underscore.toPath = toPath;
|
||||
|
||||
module.exports = toPath;
|
||||
Reference in new issue
Block a user