@walts81/linq-ts
Version:
Typescript/Javascript LINQ implementation library
7 lines (6 loc) • 348 B
TypeScript
declare global {
interface Array<T> {
max<TProp>(this: Array<T>, selector?: (item: T, index?: number) => TProp, comparer?: (a: TProp, b: TProp) => number): T | null;
}
}
export declare function max<T, TProp>(this: T[], selector?: (item: T, index?: number) => TProp | T, comparer?: (a: TProp | T, b: TProp | T) => number): T | null;