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

Function objDel

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

Source from the content-addressed store, hash-verified

124var objGet = (obj, id2) => ifNotUndefined(obj, (obj2) => obj2[id2]);
125var objHas = (obj, id2) => id2 in obj;
126var objDel = (obj, id2) => {
127 delete obj[id2];
128 return obj;
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)]));

Callers 2

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