4.17.11
3.10.1
2.4.2
1.3.1
_.sum(array)
Computes the sum of the values in array
.
Since
3.4.0
Arguments
argument
array
type
Array
description
The array to iterate over.
Returns
(array)
Example
_.sum([4, 2, 8, 6]);
// => 20
_.sum([4, 2, 8, 6]);
// => 20