MCPcopy Create free account
hub / github.com/Effect-TS/effect / has

Method has

packages/effect/src/internal/hashMap.ts:318–329  ·  view source on GitHub ↗
(_shift: number, hash: number, key: K)

Source from the content-addressed store, hash-verified

316 }
317
318 has(_shift: number, hash: number, key: K): boolean {
319 if (this.hash !== hash) {
320 return false
321 }
322
323 for (const [k] of this.entries) {
324 if (Equal_.equals(k, key)) {
325 return true
326 }
327 }
328 return false
329 }
330
331 set(
332 edit: number,

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected