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

Method length

packages/db/src/utils/btree.ts:135–137  ·  view source on GitHub ↗

Gets the number of key-value pairs in the tree.

()

Source from the content-addressed store, hash-verified

133 }
134 /** Gets the number of key-value pairs in the tree. */
135 get length() {
136 return this._size
137 }
138 /** Returns true iff the tree contains no key-value pairs. */
139 get isEmpty() {
140 return this._size === 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected