MCPcopy
hub / github.com/lodash/lodash / cacheHas

Function cacheHas

lodash.js:1061–1063  ·  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

1059 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1060 */
1061 function cacheHas(cache, key) {
1062 return cache.has(key);
1063 }
1064
1065 /**
1066 * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol

Callers 2

baseIntersectionFunction · 0.85
equalArraysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected