X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2F_baseToPath.js;fp=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2F_baseToPath.js;h=eb45827cac4142c00cf1a8266172451e7012d68e;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/_baseToPath.js b/node_modules/grunt-legacy-util/node_modules/lodash/_baseToPath.js new file mode 100644 index 000000000..eb45827ca --- /dev/null +++ b/node_modules/grunt-legacy-util/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;