Calculates the sum of an array of numbers.
Array of numbers to sum.
The total sum of the numbers.
sum([1, 2, 3]); // returns 6sum([-1, 5, 2]); // returns 6 Copy
sum([1, 2, 3]); // returns 6sum([-1, 5, 2]); // returns 6
1.1.0
Calculates the sum of an array of numbers.