1 var baseSum = require('./_baseSum'),
2 identity = require('./identity');
5 * Computes the sum of the values in `array`.
10 * @param {Array} array The array to iterate over.
11 * @returns {number} Returns the sum.
14 * _.sum([4, 2, 8, 6]);
18 return (array && array.length)
19 ? baseSum(array, identity)