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

Function compareStringsCodePoint

packages/db/src/collection/indexes.ts:23–29  ·  view source on GitHub ↗
(left: string, right: string)

Source from the content-addressed store, hash-verified

21const INDEX_SIGNATURE_VERSION = 1 as const
22
23function compareStringsCodePoint(left: string, right: string): number {
24 if (left === right) {
25 return 0
26 }
27
28 return left < right ? -1 : 1
29}
30
31function resolveResolverMetadata<TKey extends string | number>(
32 resolver: IndexConstructor<TKey>,

Callers 2

toSerializableIndexValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected