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

Function pathStartsWith

packages/db/src/query/compiler/index.ts:1657–1661  ·  view source on GitHub ↗
(path: Array<string>, prefix: Array<string>)

Source from the content-addressed store, hash-verified

1655}
1656
1657function pathStartsWith(path: Array<string>, prefix: Array<string>): boolean {
1658 return (
1659 prefix.length <= path.length && prefix.every((part, i) => path[i] === part)
1660 )
1661}
1662
1663function mapNestedFromQueries(
1664 optimizedFrom: QueryIR[`from`],

Callers 2

visitSpreadSentinelFunction · 0.85
visitSelectValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected