X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2F_baseProperty.js;fp=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2F_baseProperty.js;h=e515941c1666eeea5ab64b0f31f397317ff93b16;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/_baseProperty.js b/node_modules/grunt-legacy-util/node_modules/lodash/_baseProperty.js new file mode 100644 index 000000000..e515941c1 --- /dev/null +++ b/node_modules/grunt-legacy-util/node_modules/lodash/_baseProperty.js @@ -0,0 +1,14 @@ +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +module.exports = baseProperty;