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

Method get

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

Source from the content-addressed store, hash-verified

492 }
493
494 get(key: K, defaultValue: V | undefined, tree: BTree<K, V>): V | undefined {
495 const i = this.indexOf(key, -1, tree._compare)
496 return i < 0 ? defaultValue : this.values[i]
497 }
498
499 getPairOrNextLower(
500 key: K,

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.95

Tested by

no test coverage detected