mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Remove references to _.
This commit is contained in:
3
sum.js
3
sum.js
@@ -5,14 +5,13 @@ import identity from './identity.js';
|
||||
* Computes the sum of the values in `array`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.4.0
|
||||
* @category Math
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @returns {number} Returns the sum.
|
||||
* @example
|
||||
*
|
||||
* _.sum([4, 2, 8, 6]);
|
||||
* sum([4, 2, 8, 6]);
|
||||
* // => 20
|
||||
*/
|
||||
function sum(array) {
|
||||
|
||||
Reference in New Issue
Block a user