UNPKG

@extra-array/max

Version:
13 lines (12 loc) 389 B
declare module "@extra-array/max" { import { compareFn, mapFn } from "./_types"; /** * Finds largest entry. * @param x an array * @param fc compare function (a, b) * @param fm map function (v, i, x) * @returns [index, value] */ declare function max<T, U = T>(x: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): [number, T]; export = max; //# sourceMappingURL=max.d.ts.map}