import { AsyncReducer } from "https://deno.land/x/rimbu@0.13.0/common/mod.ts";
const { minBy } = AsyncReducer;
Returns a Reducer
that remembers the minimum value of the inputs using the given compFun
to compare input values
type
{ <T>(compFun: (v1: T, v2: T) => MaybePromise<number>): AsyncReducer<T, T | undefined>; <T, O>(compFun: (v1: T, v2: T) => MaybePromise<number>, otherwise: AsyncOptLazy<O>): AsyncReducer<T, T | O>; }