Function: toMaxByAsync()
toMaxByAsync<
Value
>(fn
):AsyncOptionalReducer
<Value
>
Returns an async optional reducer that finds the maximum value of the values
it receives based on the fn
AsyncCompare function.
Use when composing reducers. Prefer maxByAsync and maxByConcur for direct use on iterables.
Type Parameters
• Value
Parameters
• fn: AsyncCompare
<Value
>
Returns
AsyncOptionalReducer
<Value
>