Function: toMin()
toMin():
OptionalReducer
<number
>
Returns an optional reducer that finds the minimum value of the values it receives.
Use when composing reducers. Prefer min for direct use on iterables.
Returns
OptionalReducer
<number
>
Example
console.log(
pipe(
[`sloth`, `more sloth`, `sleep`, `some sloth`],
map(string => [string.length, string.codePointAt(0)]),
reduce(toGrouped(toMin(), toMap())),
),
)
//=> Map(2) { 5 => 115, 10 => 109 }