diff options
Diffstat (limited to 'tools/eslint/node_modules/lodash/_baseToPath.js')
-rw-r--r-- | tools/eslint/node_modules/lodash/_baseToPath.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/eslint/node_modules/lodash/_baseToPath.js b/tools/eslint/node_modules/lodash/_baseToPath.js new file mode 100644 index 0000000000..eb45827cac --- /dev/null +++ b/tools/eslint/node_modules/lodash/_baseToPath.js @@ -0,0 +1,16 @@ +var isArray = require('./isArray'), + stringToPath = require('./_stringToPath'); + +/** + * The base implementation of `_.toPath` which only converts `value` to a + * path if it's not one. + * + * @private + * @param {*} value The value to process. + * @returns {Array} Returns the property path array. + */ +function baseToPath(value) { + return isArray(value) ? value : stringToPath(value); +} + +module.exports = baseToPath; |