UNPKG

@yetnt/ump

Version:

A very useless math package for your complex javascript projects

16 lines 339 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sum = void 0; /** * Sums up all the numbers in the array. * @param arr Array of numbers */ function sum(arr) { let x = 0; for (const number of arr) { x += number; } return x; } exports.sum = sum; //# sourceMappingURL=Sum.js.map