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

Method nextHigherKey

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

Returns the next key larger than the specified key, or undefined if there is none. * Also, nextHigherKey(undefined) returns the lowest key.

(key: K | undefined)

Source from the content-addressed store, hash-verified

258 * Also, nextHigherKey(undefined) returns the lowest key.
259 */
260 nextHigherKey(key: K | undefined): K | undefined {
261 const p = this.nextHigherPair(key, ReusedArray as [K, V])
262 return p && p[0]
263 }
264
265 /** Returns the next pair whose key is smaller than the specified key (or undefined if there is none).
266 * If key === undefined, this function returns the highest pair.

Callers

nothing calls this directly

Calls 1

nextHigherPairMethod · 0.95

Tested by

no test coverage detected