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