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

Function objToArray

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

Source from the content-addressed store, hash-verified

397var objNew = (entries = []) => object2.fromEntries(entries);
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) => {

Callers 3

objMapFunction · 0.70
contentFunction · 0.70
RelationshipInHtmlRowFunction · 0.70

Calls 1

arrayMap2Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…