hugoWebsite/node_modules/rxjs/dist/esm5/internal/operators/max.js
Jeremy Nusser 0ab675d92b Initial commit... 🎉🎉🎉
2022-10-28 17:20:35 -05:00

6 lines
No EOL
295 B
JavaScript

import { reduce } from './reduce';
import { isFunction } from '../util/isFunction';
export function max(comparer) {
return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); });
}
//# sourceMappingURL=max.js.map