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

Function arraySum

src/common/array.ts:59–60  ·  view source on GitHub ↗
(array: number[])

Source from the content-addressed store, hash-verified

57): Return[] => array.map(cb);
58
59export const arraySum = (array: number[]): number =>
60 arrayReduce<number, number>(array, (i, j) => i + j, 0);
61
62export const arrayIsEmpty = (array: unknown[]): boolean => size(array) == 0;
63

Callers 1

aggregators.tsFile · 0.90

Calls 1

arrayReduceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…