How to return qualified elements in an array

for example,
["1", "]
I want to get the element in the array that is not", that is, the return result is" 1 "

.
Feb.27,2021

["1","","","",""].filter(v=>v!="")

filter.


  

fiter

Menu