Namespace
ArrayUtils
Returns the combined sum of all numbers in an array.
An array of numbers
The sum of all values in an array.
const numbers = [1, 2, 3, 4];const arraySum = sumArray(numbers);console.log(arraySum); // Output: 10 Copy
const numbers = [1, 2, 3, 4];const arraySum = sumArray(numbers);console.log(arraySum); // Output: 10
Generated using TypeDoc
ArrayUtils
Returns the combined sum of all numbers in an array.