frontend/.pnpm-store/v3/files/7d/b80305865dab497c93425d21d7bc593a3e375eaf1a8a72dd0f27917ffd30a2731af0b897937011711c03820cafd8f39de0b05b8bff563a5de6a801d77b1945

8 lines
255 B
Plaintext

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