Problem
Return the index of the smallest value in a non-empty array (first min if tied).
Examples
indexOfMin([5, 2, 8, 2]) -> 1indexOfMin([10]) -> 0
Return the index of the smallest value in a non-empty array (first min if tied).
indexOfMin([5, 2, 8, 2]) -> 1indexOfMin([10]) -> 0