Contact: aviboots(AT)netvision.net.il
39,990 questions
51,935 answers
573 users
const arr = [1,2,3,4,5,6,7,8,9,10]; const oddNumbers = arr.filter((e, i) => e % 2 === 1); console.log(oddNumbers); /* run: [1, 3, 5, 7, 9] */