UNPKG

@extra-array/max-index

Version:
12 lines 343 B
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