(
key: K,
compare: (a: K, b: K) => number,
inclusive: boolean,
reusedArray: [K, V],
)
| 750 | } |
| 751 | |
| 752 | getPairOrNextHigher( |
| 753 | key: K, |
| 754 | compare: (a: K, b: K) => number, |
| 755 | inclusive: boolean, |
| 756 | reusedArray: [K, V], |
| 757 | ): [K, V] | undefined { |
| 758 | const i = this.indexOf(key, 0, compare), |
| 759 | children = this.children, |
| 760 | length = children.length |
| 761 | if (i >= length) return undefined |
| 762 | const result = children[i]!.getPairOrNextHigher( |
| 763 | key, |
| 764 | compare, |
| 765 | inclusive, |
| 766 | reusedArray, |
| 767 | ) |
| 768 | if (result === undefined && i < length - 1) { |
| 769 | return children[i + 1]!.minPair(reusedArray) |
| 770 | } |
| 771 | return result |
| 772 | } |
| 773 | |
| 774 | // /////////////////////////////////////////////////////////////////////////// |
| 775 | // Internal Node: set & node splitting ////////////////////////////////////// |
nothing calls this directly
no test coverage detected