Contact: aviboots(AT)netvision.net.il
40,769 questions
53,151 answers
573 users
const arr = [72, 76, 94, 100, 83, 97]; function checkValue(val) { return val >= 81; } console.log(arr.findIndex(checkValue)); /* run: 2 */