X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FhashHas.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FhashHas.js;h=8348fa654a830c62382d1fa152aecddcf846bcca;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/lodash/internal/hashHas.js b/node_modules/uncss/node_modules/lodash/internal/hashHas.js new file mode 100644 index 000000000..8348fa654 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/internal/hashHas.js @@ -0,0 +1,21 @@ +var nativeCreate = require('./nativeCreate'); + +/** Used for built-in method references. */ +var objectProto = global.Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @param {Object} hash The hash to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(hash, key) { + return nativeCreate ? hash[key] !== undefined : hasOwnProperty.call(hash, key); +} + +module.exports = hashHas;