Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
let arr = ['node.js', '', '', 'c', '', 'c++', '', '', 'php']; arr = arr.filter(element => { return element !== ''; }); console.log(arr); /* run: [ 'node.js', 'c', 'c++', 'php' ] */