var test = ["", "A Sample PDF.pdf", " ", "file_example_JPG_100kB.jpg", " "]
expected o/p : ["A Sample PDF.pdf","file_example_JPG_100kB.jpg"]
I have tried as :
split by
'"'
(delimiter as"
)replace spaced strings to empty and then
arr.filter(Boolean)
Hope there would an easy understandable way to do this , any help is appreciated