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

Function mapMap

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

Source from the content-addressed store, hash-verified

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) => {
171 if (!collHas(map2, key)) {

Callers 1

getSortedRowIdsFunction · 0.70

Calls 1

arrayMapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…