hugoWebsite/node_modules/rxjs/dist/esm/internal/operators/max.js

6 lines
259 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
import { reduce } from './reduce';
import { isFunction } from '../util/isFunction';
export function max(comparer) {
return reduce(isFunction(comparer) ? (x, y) => (comparer(x, y) > 0 ? x : y) : (x, y) => (x > y ? x : y));
}
//# sourceMappingURL=max.js.map