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

Method has

packages/db/src/collection/index.ts:487–489  ·  view source on GitHub ↗

* Check if a key exists in the collection (virtual derived state)

(key: TKey)

Source from the content-addressed store, hash-verified

485 * Check if a key exists in the collection (virtual derived state)
486 */
487 public has(key: TKey): boolean {
488 return this._state.has(key)
489 }
490
491 /**
492 * Get the current size of the collection (cached)

Callers 7

startSyncMethod · 0.45
trackLoadPromiseMethod · 0.45
requestSnapshotMethod · 0.45
filterFnMethod · 0.45
filterAndFlipChangesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected