Skip to main content
Module

x/rambda/source/maxBy.js

Faster and smaller alternative to Ramda
Latest
File
import { curry } from './curry.js'
export function maxByFn( compareFn, x, y){ return compareFn(y) > compareFn(x) ? y : x}
export const maxBy = curry(maxByFn)