MCPcopy
hub / github.com/TheAlgorithms/JavaScript / has

Method has

Cache/LFUCache.js:138–142  ·  view source on GitHub ↗

* if key exist then return true otherwise false * @param {any} key * @returns {boolean}

(key)

Source from the content-addressed store, hash-verified

136 * @returns {boolean}
137 */
138 has(key) {
139 key = String(key) // converted to string
140
141 return this.cache.has(key)
142 }
143
144 /**
145 * @method get

Callers 3

insertMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected