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

Function objToArray

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

Source from the content-addressed store, hash-verified

129};
130var objForEach = (obj, cb) => arrayForEach(objEntries(obj), ([id2, value]) => cb(value, id2));
131var objToArray = (obj, cb) => arrayMap(objEntries(obj), ([id2, value]) => cb(value, id2));
132var objMap = (obj, cb) => objNew(objToArray(obj, (value, id2) => [id2, cb(value, id2)]));
133var objSize = (obj) => size(objIds(obj));
134var objIsEmpty = (obj) => isObject(obj) && objSize(obj) == 0;

Callers 1

objMapFunction · 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…