Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_mapCacheHas.js « lodash « node_modules - github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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;