Security update for permissions_by_term
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / stackHas.js
1 var assocHas = require('./assocHas');
2
3 /**
4  * Checks if a stack value for `key` exists.
5  *
6  * @private
7  * @name has
8  * @memberOf Stack
9  * @param {string} key The key of the entry to check.
10  * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
11  */
12 function stackHas(key) {
13   var data = this.__data__,
14       array = data.array;
15
16   return array ? assocHas(array, key) : data.map.has(key);
17 }
18
19 module.exports = stackHas;