MCPcopy Create free account
hub / github.com/tinyplex/tinybase / objMap

Function objMap

docs/pseudo.esm.sh/tinybase@9.0.0/ui-solid-dom/index.js:400–400  ·  view source on GitHub ↗
(obj, cb)

Source from the content-addressed store, hash-verified

398var objGet2 = (obj, id) => ifNotUndefined2(obj, (obj2) => obj2[id]);
399var objToArray = (obj, cb) => arrayMap2(objEntries2(obj), ([id, value]) => cb(value, id));
400var objMap = (obj, cb) => objNew(objToArray(obj, (value, id) => [id, cb(value, id)]));
401var objSize2 = (obj) => size2(objIds2(obj));
402var objIsEqual2 = (obj1, obj2, isEqual3 = (value1, value2) => value1 === value2) => {
403 const entries1 = objEntries2(obj1);

Callers 1

useCellsFunction · 0.70

Calls 2

objNewFunction · 0.70
objToArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…