MCPcopy Index your code
hub / github.com/TanStack/db / isTemporal

Function isTemporal

packages/db/src/utils.ts:232–236  ·  view source on GitHub ↗
(a: unknown)

Source from the content-addressed store, hash-verified

230
231/** Checks if the value is a Temporal object by checking for the Temporal brand */
232export function isTemporal(a: unknown): a is TemporalLike {
233 if (a == null || typeof a !== `object`) return false
234 const tag = (a as Record<symbol, unknown>)[Symbol.toStringTag]
235 return typeof tag === `string` && temporalTypes.has(tag)
236}
237
238export const DEFAULT_COMPARE_OPTIONS: CompareOptions = {
239 direction: `asc`,

Callers 5

isProxiableObjectFunction · 0.90
deepCloneFunction · 0.90
ascComparatorFunction · 0.90
normalizeValueFunction · 0.90
deepEqualsInternalFunction · 0.70

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…