UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

4 lines (3 loc) 92 B
export function maxBy(compareFn, x) { return y => (compareFn(y) > compareFn(x) ? y : x) }