UNPKG

@extra-array/max-index

Version:
10 lines 351 B
import type { compareFn, mapFn } from './_types'; /** * Finds index of largest value. * @param x an array * @param fc compare function (a, b) * @param fm map function (v, i, x) */ declare function maxIndex<T, U = T>(x: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): number; export default maxIndex; //# sourceMappingURL=index.d.ts.map