* Returns true if the key exists in the B+ tree, false if not. * Use get() for best performance; use has() if you need to * distinguish between "undefined value" and "key not present". * @param key Key to detect * @description Computational complexity: O(log size)
(key: K)
| 187 | * @description Computational complexity: O(log size) |
| 188 | */ |
| 189 | has(key: K): boolean { |
| 190 | return this.forRange(key, key, true, undefined) !== 0 |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Removes a single key-value pair from the B+ tree. |