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_hashSet.js;fp=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2F_hashSet.js;h=f7c3307399a09ca067dcb407375c2a659c598b5c;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/_hashSet.js b/node_modules/grunt-legacy-util/node_modules/lodash/_hashSet.js new file mode 100644 index 000000000..f7c330739 --- /dev/null +++ b/node_modules/grunt-legacy-util/node_modules/lodash/_hashSet.js @@ -0,0 +1,18 @@ +var nativeCreate = require('./_nativeCreate'); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Sets the hash `key` to `value`. + * + * @private + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + */ +function hashSet(hash, key, value) { + hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; +} + +module.exports = hashSet;