Contact: aviboots(AT)netvision.net.il
39,848 questions
51,769 answers
573 users
const arr: number[] = [50, 60, 75, 93, 101, 82, 96]; function checkValue(val: number) : boolean{ return val >= 80; } console.log(arr.findIndex(checkValue)); /* run: 3 */