_.sum(array)
Computes the sum of the values in array.
Since
3.4.0
Arguments
-
array(Array): The array to iterate over.
Returns
(number): Returns the sum.
Example
_.sum([4, 2, 8, 6]); // => 20
_.sum(array)
Computes the sum of the values in array.
3.4.0
array (Array): The array to iterate over.(number): Returns the sum.
_.sum([4, 2, 8, 6]); // => 20
Please login to continue.