X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FassocHas.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FassocHas.js;h=fe9091137130debaab07fdba0a6fcf0fde0fcf18;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/lodash/internal/assocHas.js b/node_modules/uncss/node_modules/lodash/internal/assocHas.js new file mode 100644 index 000000000..fe9091137 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/internal/assocHas.js @@ -0,0 +1,15 @@ +var assocIndexOf = require('./assocIndexOf'); + +/** + * Checks if an associative array value for `key` exists. + * + * @private + * @param {Array} array The array 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 assocHas(array, key) { + return assocIndexOf(array, key) > -1; +} + +module.exports = assocHas;