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