Variable: maxBy
const
maxBy:MinOrMaxBy
Defined in: statistics.d.ts:462
Returns an iterable containing a maximum value of iterable
based on the
fn
Compare function if iterable
contains at least one value.
Otherwise, returns an empty iterable.
Example
console.log(
pipe(
[`eating`, `sleeping`, `yawning`],
maxBy((a, b) => a.length - b.length),
get,
),
)
//=> sleeping
Since
v0.0.1