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

Function isProxiableObject

packages/db/src/proxy.ts:60–70  ·  view source on GitHub ↗

* Check if a value is a proxiable object (not Date, RegExp, or Temporal)

(
  value: unknown,
)

Source from the content-addressed store, hash-verified

58 * Check if a value is a proxiable object (not Date, RegExp, or Temporal)
59 */
60function isProxiableObject(
61 value: unknown,
62): value is Record<string | symbol, unknown> {
63 return (
64 value !== null &&
65 typeof value === `object` &&
66 !((value as any) instanceof Date) &&
67 !((value as any) instanceof RegExp) &&
68 !isTemporal(value)
69 )
70}
71
72/**
73 * Creates a handler for array iteration methods that ensures proxied elements

Callers 3

getProxiedElementFunction · 0.85
nextFunction · 0.85
getFunction · 0.85

Calls 1

isTemporalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…