UNPKG

ts-ds-tool

Version:

Data structure and algorithm of TypeScript

5 lines (4 loc) 117 B
export declare function minAndMax<T>(arr: Array<T>, compare?: (a: T, b: T) => boolean): { min: T; max: T; };