x/rambda/source/maxBy.js
12345678import {curry} from './curry'export function maxByFn(compareFn, x, y) { return compareFn(y) > compareFn(x) ? y : x}export const maxBy = curry(maxByFn)