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