responsive changes

This commit is contained in:
2026-02-22 22:14:30 +03:30
parent 2edf23a065
commit a616adfe68
5014 changed files with 37531 additions and 426775 deletions
-24
View File
@@ -1,24 +0,0 @@
import baseSum from './_baseSum.js';
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]);
* // => 20
*/
function sum(array) {
return (array && array.length)
? baseSum(array, identity)
: 0;
}
export default sum;