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

Method nextLowerKey

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

Returns the next key smaller than the specified key, or undefined if there is none. * Also, nextLowerKey(undefined) returns the highest key.

(key: K | undefined)

Source from the content-addressed store, hash-verified

280 * Also, nextLowerKey(undefined) returns the highest key.
281 */
282 nextLowerKey(key: K | undefined): K | undefined {
283 const p = this.nextLowerPair(key, ReusedArray as [K, V])
284 return p && p[0]
285 }
286
287 /** Adds all pairs from a list of key-value pairs.
288 * @param pairs Pairs to add to this tree. If there are duplicate keys,

Callers

nothing calls this directly

Calls 1

nextLowerPairMethod · 0.95

Tested by

no test coverage detected