MCPcopy Index your code
hub / github.com/TanStack/db / clone

Method clone

packages/db/src/utils/btree.ts:489–492  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

487 }
488
489 clone(): BNode<K, V> {
490 const v = this.values
491 return new BNode<K, V>(this.keys.slice(0), v === undefVals ? v : v.slice(0))
492 }
493
494 get(key: K, defaultValue: V | undefined, tree: BTree<K, V>): V | undefined {
495 const i = this.indexOf(key, -1, tree._compare)

Callers 5

setMethod · 0.80
editRangeMethod · 0.80
setMethod · 0.80
forRangeMethod · 0.80
tryMergeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected