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

Function isValue

packages/db/src/query/compiler/index.ts:1432–1437  ·  view source on GitHub ↗
(raw: any)

Source from the content-addressed store, hash-verified

1430
1431// Helper to check if a value is a Value expression
1432function isValue(raw: any): boolean {
1433 return (
1434 raw instanceof ValClass ||
1435 (raw && typeof raw === `object` && `type` in raw && raw.type === `val`)
1436 )
1437}
1438
1439// Helper to unwrap a Value expression or return the value itself
1440function unwrapValue(value: any): any {

Callers 1

unwrapValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected