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

Function objDel

src/common/obj.ts:43–46  ·  view source on GitHub ↗
(obj: IdObj<Value>, id: Id)

Source from the content-addressed store, hash-verified

41export const objHas = (obj: IdObj<unknown>, id: Id): boolean => id in obj;
42
43export const objDel = <Value>(obj: IdObj<Value>, id: Id): IdObj<Value> => {
44 delete obj[id];
45 return obj;
46};
47
48export const objToMap = <Value>(obj: IdObj<Value>): Map<Id, Value> =>
49 new Map(objEntries(obj));

Callers 7

ProviderFunction · 0.90
delExtraThingByIdFunction · 0.90
applyChangesToDocFunction · 0.90
docObjMatchFunction · 0.90
loadTableFunction · 0.90
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…