diff options
Diffstat (limited to 'node_modules/rxjs/dist/cjs/internal/operators/max.js')
| -rw-r--r-- | node_modules/rxjs/dist/cjs/internal/operators/max.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/cjs/internal/operators/max.js b/node_modules/rxjs/dist/cjs/internal/operators/max.js new file mode 100644 index 0000000..29ba768 --- /dev/null +++ b/node_modules/rxjs/dist/cjs/internal/operators/max.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.max = void 0; +var reduce_1 = require("./reduce"); +var isFunction_1 = require("../util/isFunction"); +function max(comparer) { + 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); }); +} +exports.max = max; +//# sourceMappingURL=max.js.map
\ No newline at end of file |
