Variable: maxWith
constmaxWith:MinOrMaxWith
Defined in: statistics.d.ts:847
Returns an iterable containing a maximum value of iterable by comparing the
numerical values of each value, as defined by fn, if iterable contains at
least one value. Otherwise, returns an empty iterable.
Example
console.log(
pipe(
[`eating`, `sleeping`, `yawning`],
maxWith(value => value.length),
get,
),
)
//=> sleeping
Since
v0.0.1