sequency
Version:
Functional sequences for processing iterable data in JavaScript
11 lines (10 loc) • 322 B
TypeScript
import Sequence from "./Sequence";
export declare class MaxWith {
/**
* Returns the maximum element of the sequence by evaluating the given `compare`
* function or `null` if sequence is empty.
*
* @returns {T}
*/
maxWith<T>(this: Sequence<T>, compare: (a: T, b: T) => number): T | null;
}