X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FhashSet.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FhashSet.js;h=d238f3dd18e78b9d36908df01ac9c5dec65b5b84;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/lodash/internal/hashSet.js b/node_modules/uncss/node_modules/lodash/internal/hashSet.js new file mode 100644 index 000000000..d238f3dd1 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/internal/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;