aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_mapCacheHas.js
blob: a1214c028bdb7a38cc23cd933a2f33ffdca3d0fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var getMapData = require('./_getMapData');

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function mapCacheHas(key) {
  return getMapData(this, key).has(key);
}

module.exports = mapCacheHas;