Contact: aviboots(AT)netvision.net.il
40,877 questions
53,285 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 */