how to find the index of min of an array code example
Example: javascript index of min value in array
arr = [11, 10, 10];
var index = arr.indexOf(Math.max(...arr));
arr = [11, 10, 10];
var index = arr.indexOf(Math.max(...arr));