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

Function isUnorderable

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

Source from the content-addressed store, hash-verified

26 * everything (which has no consistent order and cannot be indexed or sorted).
27 */
28export function isUnorderable(value: any): boolean {
29 return (
30 (typeof value === `number` && Number.isNaN(value)) ||
31 (value instanceof Date && Number.isNaN(value.getTime()))
32 )
33}
34
35/**
36 * Universal comparison function for all data types

Callers 3

ascComparatorFunction · 0.85
valuesEqualFunction · 0.85
compileFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected