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"]
Source by edabit.com #
 
PREVIOUS NEXT
Tagged: #array #remove #empty #entrys #js
ADD COMMENT
Topic
Name
8+6 =