MCPcopy
hub / github.com/tinyplex/tinybase / collHas

Function collHas

src/common/coll.ts:21–24  ·  view source on GitHub ↗
(
  coll: Coll<unknown> | undefined,
  keyOrValue: unknown,
)

Source from the content-addressed store, hash-verified

19export const collSize4 = collSizeN(collSize3);
20
21export const collHas = (
22 coll: Coll<unknown> | undefined,
23 keyOrValue: unknown,
24): boolean => coll?.has(keyOrValue) ?? false;
25
26export const collIsEmpty = (coll: Coll<unknown> | undefined): boolean =>
27 isUndefined(coll) || collSize(coll) == 0;

Callers 15

syncStoreListenersFunction · 0.90
setQueryDefinitionImplFunction · 0.90
hasCheckpointFunction · 0.90
validateTableFunction · 0.90
setValidCellFunction · 0.90
setValidValueFunction · 0.90
getNewRowIdFunction · 0.90
cellChangedFunction · 0.90
valueChangedFunction · 0.90
hasTableFunction · 0.90
hasTableCellFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…