Files
k8s-set-context/node_modules/underscore/cjs/toPath.js
github-actions[bot] 52d71d28bd Add node modules and compiled JavaScript from main (#54)
Co-authored-by: Oliver King <oking3@uncc.edu>
2022-06-29 15:41:55 -04:00

12 lines
308 B
JavaScript

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;