frontend/.pnpm-store/v3/files/4c/aef7127d7c3c60fbcb7cf14b8ef6805e99d942ae7e3b3995419c820f228f6440d3ff6ce2562cf66ecdcaa9ed3b08b539a83291bd4f2bc5ed248eff580e36e8

6 lines
259 B
Plaintext

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