let a = ["",0,undefined,null,"a"].filter(item=>item)console.log(a) // [ 'a' ]// this function is to remove 0,null,"",undefined which mean false