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