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

Function extractValue

packages/db/src/query/expression-helpers.ts:127–132  ·  view source on GitHub ↗
(expr: BasicExpression)

Source from the content-addressed store, hash-verified

125 * ```
126 */
127export function extractValue(expr: BasicExpression): any {
128 if (expr.type === `val`) {
129 return expr.value
130 }
131 return undefined
132}
133
134/**
135 * Generic expression tree walker that visits each node in the expression.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected