Contact: aviboots(AT)netvision.net.il
39,926 questions
51,859 answers
573 users
const array = [3, 6, 1, 8, 9, 4, 5]; const number = (element) => element > 6; const index = array.findIndex(number); console.log(index); console.log(array[index]); /* run: 3 8 */