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

Method get

packages/db/src/utils/btree.ts:723–729  ·  view source on GitHub ↗
(key: K, defaultValue: V | undefined, tree: BTree<K, V>)

Source from the content-addressed store, hash-verified

721 }
722
723 get(key: K, defaultValue: V | undefined, tree: BTree<K, V>): V | undefined {
724 const i = this.indexOf(key, 0, tree._compare),
725 children = this.children
726 return i < children.length
727 ? children[i]!.get(key, defaultValue, tree)
728 : undefined
729 }
730
731 getPairOrNextLower(
732 key: K,

Callers

nothing calls this directly

Calls 2

indexOfMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected