MCPcopy Create free account
hub / github.com/denoland/std / has

Method has

cache/lru_cache.ts:185–187  ·  view source on GitHub ↗

* Checks whether an element with the specified key exists or not. Does * **not** update the entry's position in the eviction order. * * @param key The key to check. * @returns `true` if the cache contains the specified key, otherwise `false`. * * @example Checking for the existence

(key: K)

Source from the content-addressed store, hash-verified

183 * ```
184 */
185 override has(key: K): boolean {
186 return super.has(key);
187 }
188
189 /**
190 * Gets the element with the specified key.

Callers

nothing calls this directly

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected