MCPcopy Index your code
hub / github.com/tinyplex/tinybase / mapForEach

Function mapForEach

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:167–167  ·  view source on GitHub ↗
(map2, cb)

Source from the content-addressed store, hash-verified

165var mapKeys = (map2) => [...map2?.keys() ?? []];
166var mapGet = (map2, key) => map2?.get(key);
167var mapForEach = (map2, cb) => collForEach(map2, (value, key) => cb(key, value));
168var mapMap = (coll, cb) => arrayMap([...coll?.entries() ?? []], ([key, value]) => cb(value, key));
169var mapSet = (map2, key, value) => isUndefined(value) ? (collDel(map2, key), map2) : map2?.set(key, value);
170var mapEnsure = (map2, key, getDefaultValue, hadExistingValue) => {

Callers 15

mapMatchFunction · 0.70
forEachThingFunction · 0.70
setDefinitionAndListenFunction · 0.70
destroyFunction · 0.70
forEachCheckpointFunction · 0.70
setIndexDefinitionFunction · 0.70
delValidCellFunction · 0.70
forEachTableFunction · 0.70
forEachTableCellFunction · 0.70
forEachRowFunction · 0.70
forEachCellFunction · 0.70

Calls 1

collForEachFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…