fe9091137130debaab07fdba0a6fcf0fde0fcf18
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / assocHas.js
1 var assocIndexOf = require('./assocIndexOf');
2
3 /**
4  * Checks if an associative array value for `key` exists.
5  *
6  * @private
7  * @param {Array} array The array to query.
8  * @param {string} key The key of the entry to check.
9  * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10  */
11 function assocHas(array, key) {
12   return assocIndexOf(array, key) > -1;
13 }
14
15 module.exports = assocHas;