Snippets Collections
const arr = ["Apple",45,"","google",null],,,,"facebook","",69]

const removeEle = arr.filter((el)=> return el !=null && el != "")
star

Fri Apr 02 2021 07:12:07 GMT+0000 (Coordinated Universal Time)

#javascript #array #emptyarray

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension