MCPcopy Create free account
hub / github.com/RubyLouvre/anu / cacheHas

Function cacheHas

test/babel.js:28129–28131  ·  view source on GitHub ↗

* Checks if a `cache` value for `key` exists. * * @private * @param {Object} cache The cache to query. * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.

(cache, key)

Source from the content-addressed store, hash-verified

28127 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
28128 */
28129 function cacheHas(cache, key) {
28130 return cache.has(key);
28131 }
28132
28133 module.exports = cacheHas;
28134

Callers 1

equalArraysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected