numeric.js 353 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.max = exports.sum = void 0;
  4. function sum(A) {
  5. return A.reduce(function (a, b) { return a + b; }, 0);
  6. }
  7. exports.sum = sum;
  8. function max(A) {
  9. return A.reduce(function (a, b) { return Math.max(a, b); }, 0);
  10. }
  11. exports.max = max;
  12. //# sourceMappingURL=numeric.js.map