Files
k8s-set-context/node_modules/underscore/modules/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

10 lines
273 B
JavaScript

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;