Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/stream/async-custom/async-stream-custom.ts>AsyncStreamBase#maxBy

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
method AsyncStreamBase.prototype.maxBy
import { AsyncStreamBase } from "https://deno.land/x/rimbu@0.14.1/stream/async-custom/async-stream-custom.ts";

Parameters

compare: (v1: T, v2: T) => number
optional
otherwise: AsyncOptLazy<O>

Returns

Promise<T | O>