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

Function objForEach

src/common/obj.ts:51–54  ·  view source on GitHub ↗
(
  obj: IdObj<Value>,
  cb: (value: Value, id: string) => void,
)

Source from the content-addressed store, hash-verified

49 new Map(objEntries(obj));
50
51export const objForEach = <Value>(
52 obj: IdObj<Value>,
53 cb: (value: Value, id: string) => void,
54): void => arrayForEach(objEntries(obj), ([id, value]) => cb(value, id));
55
56export const objToArray = <FromValue, ToValue>(
57 obj: IdObj<FromValue>,

Callers 12

toTablesSchemaFunction · 0.90
toValuesSchemaFunction · 0.90
mergeContentOrChangesFunction · 0.90
mergeCellsOrValuesFunction · 0.90
getMergeableRowHashesFunction · 0.90
getMergeableRowDiffFunction · 0.90
getMergeableCellHashesFunction · 0.90
getMergeableCellDiffFunction · 0.90
setPersistedFunction · 0.90
setPersistedFunction · 0.90
mergeTablesStampsFunction · 0.90
objValidateFunction · 0.70

Calls 1

arrayForEachFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…