javascript minimum of array with index code example
Example 1: javascript minimum number in array
const min = arr => Math.min(...arr);
Example 2: javascript index of min value in array
arr = [11, 10, 10];
var index = arr.indexOf(Math.max(...arr));