source:
trip-planner-front/node_modules/rxjs/_esm2015/internal/operators/max.js@
6c1585f
Last change on this file since 6c1585f was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 255 bytes |
Line | |
---|---|
1 | import { reduce } from './reduce'; |
2 | export function max(comparer) { |
3 | const max = (typeof comparer === 'function') |
4 | ? (x, y) => comparer(x, y) > 0 ? x : y |
5 | : (x, y) => x > y ? x : y; |
6 | return reduce(max); |
7 | } |
8 | //# sourceMappingURL=max.js.map |
Note:
See TracBrowser
for help on using the repository browser.