Skip to main content
Module

x/rambda/minBy.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { curry } from './curry'
export function minByFn( compareFn, x, y){ return compareFn(y) < compareFn(x) ? y : x}
export const minBy = curry(minByFn)