mirror of
https://github.com/github/codeql-action
synced 2026-05-25 15:00:36 +03:00
Initial commit (from f5274cbdce4ae7c9e4b937dcdf95ac70ae436d5f)
This commit is contained in:
+16
@@ -0,0 +1,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;
|
||||
Reference in New Issue
Block a user