Contact: aviboots(AT)netvision.net.il
41,215 questions
53,717 answers
573 users
const arr: Array<number> = [4, 8, 3, 10, 5, 0, 9, 7]; const index = arr.indexOf(Math.max(...arr)); console.log(index); /* run: 3 */