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

Function isTemporal

packages/db-ivm/src/hashing/hash.ts:39–42  ·  view source on GitHub ↗
(input: object)

Source from the content-addressed store, hash-verified

37}
38
39function isTemporal(input: object): input is TemporalLike {
40 const tag = (input as Record<symbol, unknown>)[Symbol.toStringTag]
41 return typeof tag === `string` && temporalTypes.has(tag)
42}
43
44// Maximum byte length for Uint8Arrays to hash by content instead of reference
45// Arrays smaller than this will be hashed by content, allowing proper equality comparisons

Callers 1

hashObjectFunction · 0.70

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected