MCPcopy
hub / github.com/tinyplex/tinybase / objHas

Function objHas

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

Source from the content-addressed store, hash-verified

39): Value | undefined => ifNotUndefined(obj, (obj) => (obj as IdObj<Value>)[id]);
40
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];

Callers 12

ProviderFunction · 0.90
delExtraThingByIdFunction · 0.90
getMergeableTableDiffFunction · 0.90
getMergeableRowDiffFunction · 0.90
addDefaultsToRowFunction · 0.90
addDefaultsToValuesFunction · 0.90
yMapMatchFunction · 0.90
objectStoreMatchFunction · 0.90
docObjMatchFunction · 0.90
saveTablesFunction · 0.90
mapMatchFunction · 0.90
objEnsureFunction · 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…