Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array remove empty entrys js

const filterArray=(a,b)=>{return a.filter((e)=>{return e!=b})}
let array = ["a","b","","d","","f"];

console.log(filterArray(array,""));//>> ["a","b","d","f"]
 
PREVIOUS NEXT
Tagged: #array #remove #empty #entrys #js
ADD COMMENT
Topic
Name
1+8 =