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

Function cloneExpression

packages/db/src/collection/indexes.ts:205–207  ·  view source on GitHub ↗
(expression: BasicExpression)

Source from the content-addressed store, hash-verified

203}
204
205function cloneExpression(expression: BasicExpression): BasicExpression {
206 return JSON.parse(JSON.stringify(expression)) as BasicExpression
207}
208
209export class CollectionIndexesManager<
210 TOutput extends object = Record<string, unknown>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected