* Checks if a key exists in the map * * @param key - The key to check * @returns True if the key exists, false otherwise
(key: TKey)
| 140 | * @returns True if the key exists, false otherwise |
| 141 | */ |
| 142 | has(key: TKey): boolean { |
| 143 | return this.map.has(key) |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * Removes all key-value pairs from the map |