Function: toMaxWithAsync()
toMaxWithAsync<
Value
>(fn
):AsyncOptionalReducer
<Value
>
Returns an async optional reducer that finds the maximum value of the values
it receives by comparing the numerical values of each value, as defined by
fn
.
Use when composing reducers. Prefer maxWithAsync and maxWithConcur for direct use on iterables.
Type Parameters
• Value
Parameters
fn
(value
) => MaybePromiseLike
<number
>
Returns
AsyncOptionalReducer
<Value
>
Since
v2.0.0