max.js 430 B

12345678910
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.max = void 0;
  4. var reduce_1 = require("./reduce");
  5. var isFunction_1 = require("../util/isFunction");
  6. function max(comparer) {
  7. return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); });
  8. }
  9. exports.max = max;
  10. //# sourceMappingURL=max.js.map