From 5d309ff52cd399a6b71968a6b9a70c8ac0b98981 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sat, 5 Mar 2022 19:02:27 +0200 Subject: Added node_modules for the updating to work properly. --- node_modules/lodash/sum.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 node_modules/lodash/sum.js (limited to 'node_modules/lodash/sum.js') diff --git a/node_modules/lodash/sum.js b/node_modules/lodash/sum.js new file mode 100644 index 0000000..3b07ee4 --- /dev/null +++ b/node_modules/lodash/sum.js @@ -0,0 +1,24 @@ +var baseSum = require('./_baseSum'), + identity = require('./identity'); + +/** + * 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; +} + +module.exports = sum; -- cgit v1.2.3