Computes the sum of the values in array.
array
The array to iterate over.
Returns the sum.
5.6.0
sum([4, 2, 8, 6])// => 20 Copy
sum([4, 2, 8, 6])// => 20
Computes the sum of the values in
array
.