Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
388 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var reduce_1 = require("./reduce");
|
---|
4 | function max(comparer) {
|
---|
5 | var max = (typeof comparer === 'function')
|
---|
6 | ? function (x, y) { return comparer(x, y) > 0 ? x : y; }
|
---|
7 | : function (x, y) { return x > y ? x : y; };
|
---|
8 | return reduce_1.reduce(max);
|
---|
9 | }
|
---|
10 | exports.max = max;
|
---|
11 | //# sourceMappingURL=max.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.