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

Function mapForEach

src/common/map.ts:29–32  ·  view source on GitHub ↗
(
  map: Map<Key, Value> | undefined,
  cb: (key: Key, value: Value) => void,
)

Source from the content-addressed store, hash-verified

27): Value | undefined => map?.get(key);
28
29export const mapForEach = <Key, Value>(
30 map: Map<Key, Value> | undefined,
31 cb: (key: Key, value: Value) => void,
32): void => collForEach(map, (value, key) => cb(key, value));
33
34export const mapMap = <Key, Value, Return>(
35 coll: Map<Key, Value> | undefined,

Callers 15

resetPreStoresFunction · 0.90
resetSourceStoresFunction · 0.90
syncStoreListenersFunction · 0.90
setQueryDefinitionImplFunction · 0.90
writeGroupRowFunction · 0.90
writeSelectRowFunction · 0.90
delListenerFunction · 0.90
forEachCheckpointFunction · 0.90
getMergeableTableDiffFunction · 0.90
getMergeableRowHashesFunction · 0.90
getMergeableRowDiffFunction · 0.90
getMergeableCellHashesFunction · 0.90

Calls 1

collForEachFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…