MCPcopy Create free account
hub / github.com/TanStack/db / maxPair

Method maxPair

packages/db/src/utils/btree.ts:719–721  ·  view source on GitHub ↗
(reusedArray: [K, V])

Source from the content-addressed store, hash-verified

717 }
718
719 maxPair(reusedArray: [K, V]): [K, V] | undefined {
720 return this.children[this.children.length - 1]!.maxPair(reusedArray)
721 }
722
723 get(key: K, defaultValue: V | undefined, tree: BTree<K, V>): V | undefined {
724 const i = this.indexOf(key, 0, tree._compare),

Callers 1

getPairOrNextLowerMethod · 0.95

Calls 1

maxPairMethod · 0.45

Tested by

no test coverage detected