Contact: aviboots(AT)netvision.net.il
39,907 questions
51,839 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 */