* Finds a pair in the tree and returns the associated value. * @param defaultValue a value to return if the key was not found. * @returns the value, or defaultValue if the key was not found. * @description Computational complexity: O(log size)
(key: K, defaultValue?: V)
| 153 | * @description Computational complexity: O(log size) |
| 154 | */ |
| 155 | get(key: K, defaultValue?: V): V | undefined { |
| 156 | return this._root.get(key, defaultValue, this) |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Adds or overwrites a key-value pair in the B+ tree. |
no outgoing calls