javascript index of biggest number

JavaScript
arr.indexOf(Math.max(...arr))
Source

Also in JavaScript: