blob: 16a3ad11b964c49f1390440b9ab6c928dc3c11cf [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001/**
2 * Checks if a stack value for `key` exists.
3 *
4 * @private
5 * @name has
6 * @memberOf Stack
7 * @param {string} key The key of the entry to check.
8 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
9 */
10function stackHas(key) {
11 return this.__data__.has(key);
12}
13
14module.exports = stackHas;