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

Function objToArray

src/common/obj.ts:56–59  ·  view source on GitHub ↗
(
  obj: IdObj<FromValue>,
  cb: (value: FromValue, id: string) => ToValue,
)

Source from the content-addressed store, hash-verified

54): void => arrayForEach(objEntries(obj), ([id, value]) => cb(value, id));
55
56export const objToArray = <FromValue, ToValue>(
57 obj: IdObj<FromValue>,
58 cb: (value: FromValue, id: string) => ToValue,
59): ToValue[] => arrayMap(objEntries(obj), ([id, value]) => cb(value, id));
60
61export const objMap = <FromValue, ToValue>(
62 obj: IdObj<FromValue>,

Callers 15

RelationshipInHtmlRowFunction · 0.90
RelationshipInHtmlTableFunction · 0.90
HtmlTableFunction · 0.90
objectStoreMatchFunction · 0.90
saveStoreFunction · 0.90
loadTableFunction · 0.90
saveTableFunction · 0.90
defaultUpsertFunction · 0.90
getValuesSubsetFunction · 0.90
style.tsFile · 0.90
RelationshipInHtmlRowFunction · 0.90

Calls 1

arrayMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…