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

Function collIsEmpty

src/common/coll.ts:26–27  ·  view source on GitHub ↗
(coll: Coll<unknown> | undefined)

Source from the content-addressed store, hash-verified

24): boolean => coll?.has(keyOrValue) ?? false;
25
26export const collIsEmpty = (coll: Coll<unknown> | undefined): boolean =>
27 isUndefined(coll) || collSize(coll) == 0;
28
29export const collValues = <Value>(coll: Coll<Value> | undefined): Value[] => [
30 ...(coll?.values() ?? []),

Callers 15

delSourceStoreListenersFunction · 0.90
setQueryDefinitionImplFunction · 0.90
writeGroupRowFunction · 0.90
_registerListenersFunction · 0.90
delValidCellFunction · 0.90
callInvalidCellListenersFunction · 0.90
hasTablesFunction · 0.90
hasValuesFunction · 0.90

Calls 2

isUndefinedFunction · 0.90
collSizeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…