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

Function normalizeForBTree

packages/db/src/utils/comparison.ts:222–227  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

220 * (it interprets undefined as "start from beginning" in nextHigherPair/nextLowerPair).
221 */
222export function normalizeForBTree(value: any): any {
223 if (value === undefined) {
224 return UNDEFINED_SENTINEL
225 }
226 return normalizeValue(value)
227}
228
229/**
230 * Converts the `UNDEFINED_SENTINEL` back to `undefined`.

Callers 7

addMethod · 0.85
removeMethod · 0.85
equalityLookupMethod · 0.85
rangeQueryMethod · 0.85
takeMethod · 0.85
takeReversedMethod · 0.85
inArrayLookupMethod · 0.85

Calls 1

normalizeValueFunction · 0.85

Tested by

no test coverage detected