MCPcopy
hub / github.com/tdewolff/minify / cacheHas

Function cacheHas

_benchmarks/sample_antd.js:78952–78954  ·  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

78950 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
78951 */
78952function cacheHas(cache, key) {
78953 return cache.has(key);
78954}
78955
78956module.exports = cacheHas;
78957

Callers 2

equalArraysFunction · 0.85
equalArraysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…