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

Function arrayForEach

src/common/array.ts:46–49  ·  view source on GitHub ↗
(
  array: {forEach: (cb: (value: Value, index: number) => void) => void},
  cb: (value: Value, index: number) => void,
)

Source from the content-addressed store, hash-verified

44): Value[] => array.sort(sorter);
45
46export const arrayForEach = <Value>(
47 array: {forEach: (cb: (value: Value, index: number) => void) => void},
48 cb: (value: Value, index: number) => void,
49): void => array.forEach(cb);
50
51export const arrayJoin = (array: (string | number)[], sep = EMPTY_STRING) =>
52 array.join(sep);

Callers 15

addPreStoreListenerFunction · 0.90
resetPreStoresFunction · 0.90
addSourceStoreListenersFunction · 0.90
syncStoreListenersFunction · 0.90
listenToTableFunction · 0.90
setQueryDefinitionImplFunction · 0.90
destroyFunction · 0.90
index.tsFile · 0.90
clearCheckpointIdsFunction · 0.90
getPropertiesFunction · 0.90
finishTransactionFunction · 0.90
getChangesFromYDocFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…