MCPcopy
hub / github.com/aspen-cloud/triplit / has

Method has

packages/db/src/utils/nested-map.ts:26–31  ·  view source on GitHub ↗
(k1: K1, k2?: K2)

Source from the content-addressed store, hash-verified

24 has(k1: K1): boolean;
25 has(k1: K1, k2: K2): boolean;
26 has(k1: K1, k2?: K2): boolean {
27 if (k2 === undefined) {
28 return this.data.has(k1);
29 }
30 return this.data.get(k1)?.has(k2) ?? false;
31 }
32
33 keys(): IterableIterator<K1> {
34 return this.data.keys();

Callers 15

tempTriplitServerFunction · 0.80
subscribeMethod · 0.80
connectQueryMethod · 0.80
disconnectQueryMethod · 0.80
onMessageHandlerMethod · 0.80
DataViewerFunction · 0.80
OrderPopoverFunction · 0.80
CreateEntitySheetFunction · 0.80
useClientFunction · 0.80
addToRemoveQueueFunction · 0.80

Calls 1

getMethod · 0.65

Tested by 4

flushChangesMethod · 0.64
subscribeMethod · 0.64
updateViewsMethod · 0.64