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

Function objGet2

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

Source from the content-addressed store, hash-verified

396var objIds2 = object2.keys;
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));

Callers 1

useThing2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…