Module

x/rambda/immutable.d.ts>maxBy

Faster and smaller alternative to Ramda
Go to Latest
function maxBy
import { maxBy } from "https://dotland.deno.dev/x/rambda@v9.2.0/immutable.d.ts";

It returns the greater value between x and y according to compareFn function.

Parameters

compareFn: (input: T) => Ord
x: T
y: T

Parameters

compareFn: (input: T) => Ord
x: T

Returns

(y: T) => T

Parameters

compareFn: (input: T) => Ord

Returns

(x: T) => (y: T) => T