Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash sum

_.sum([4, 2, 8, 6]);
// => 20

Arguments
array (Array): The array to iterate over.
Returns
(number): Returns the sum.
Source by lodash.com #
 
PREVIOUS NEXT
Tagged: #lodash #sum
ADD COMMENT
Topic
Name
3+2 =