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

Function arrayReduce

src/common/array.ts:64–68  ·  view source on GitHub ↗
(
  array: Value[],
  cb: (previous: Result, current: Value) => Result,
  initial: Result,
)

Source from the content-addressed store, hash-verified

62export const arrayIsEmpty = (array: unknown[]): boolean => size(array) == 0;
63
64export const arrayReduce = <Value, Result>(
65 array: Value[],
66 cb: (previous: Result, current: Value) => Result,
67 initial: Result,
68): Result => array.reduce(cb, initial);
69
70export const arrayFilter: {
71 <Value, FilteredValue extends Value>(

Callers 6

reduceCallbacksFunction · 0.90
getUniqueIdFunction · 0.90
getValuesHashFunction · 0.90
getTableHashFunction · 0.90
collSizeNFunction · 0.90
arraySumFunction · 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…