howto find index of minimum element in js code example
Example: how to find the lowest number in an array in javascript for specific indexes
var index = 0;
var value = temp[0];
for (var i = 1; i < temp.length; i++) {
if (temp[i] < value) {
value = temp[i];
index = i;
}
}