MCPcopy
hub / github.com/FormidableLabs/nuka-carousel / arraySum

Function arraySum

packages/nuka/src/utils/array.ts:16–19  ·  view source on GitHub ↗
(values: number[])

Source from the content-addressed store, hash-verified

14 * @returns An array of numbers
15 */
16export function arraySum(values: number[]): number[] {
17 let sum = 0;
18 return values.map((value) => (sum += value));
19}

Callers 2

useMeasurementFunction · 0.90
array.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected