Find the index of the smallest element in a JavaScript array | Heykuki News