@extra-array/min-index
Version:
Finds index of smallest value.
12 lines • 344 B
JavaScript
import { minIndex as iterableMinIndex } from 'extra-iterable';
/**
* Finds index of smallest value.
* @param x an array
* @param fc compare function (a, b)
* @param fm map function (v, i, x)
*/
function minIndex(x, fc = null, fm = null) {
return iterableMinIndex(x, fc, fm);
}
export default minIndex;
//# sourceMappingURL=index.js.map