Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js filter array

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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #filter #array
ADD COMMENT
Topic
Name
1+8 =