( self: MutableHashMap<K, V>, bucket: NonEmptyArray<K>, key: K )
| 366 | * Checks whether the MutableHashMap contains the specified key. |
| 367 | * |
| 368 | * **When to use** |
| 369 | * |
| 370 | * Use to test whether a key is present in a `MutableHashMap` without reading |
| 371 | * its value. |
| 372 | * |
| 373 | * **Example** (Checking for a key) |
| 374 | * |
| 375 | * ```ts import.meta.vitest |
| 376 | * import { MutableHashMap } from "effect" |
| 377 | * |
| 378 | * const map = MutableHashMap.make(["key1", 42], ["key2", 100]) |
| 379 | * |
| 380 | * MutableHashMap.has(map, "key1") // => true |
| 381 | * MutableHashMap.has(map, "key3") // => false |
| 382 | * |
| 383 | * // Pipe-able version |
| 384 | * MutableHashMap.has("key1")(map) // => true |
no test coverage detected
searching dependent graphs…