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

Function hasKey

packages/db/src/query/compiler/index.ts:1876–1877  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

1874 entries: Array<{ key?: string; fieldName?: string }>,
1875): string {
1876 const hasKey = (key: string) =>
1877 entries.some((entry) => (entry.key ?? entry.fieldName) === key)
1878
1879 if (!hasKey(baseKey)) {
1880 return baseKey

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected