(reusedArray: [K, V])
| 479 | } |
| 480 | |
| 481 | maxPair(reusedArray: [K, V]): [K, V] | undefined { |
| 482 | if (this.keys.length === 0) return undefined |
| 483 | const lastIndex = this.keys.length - 1 |
| 484 | reusedArray[0] = this.keys[lastIndex]! |
| 485 | reusedArray[1] = this.values[lastIndex]! |
| 486 | return reusedArray |
| 487 | } |
| 488 | |
| 489 | clone(): BNode<K, V> { |
| 490 | const v = this.values |
no outgoing calls
no test coverage detected