1 line of code: How to get the first index of the highest numeric item of an Array
const indexOfHighest = arr =&gt; arr.indexOf(Math.max.apply(null, arr));        Enter fullscreen...
Tags: javascript, webdev, performance, codequality