I have an array ["Lorem", "", "ipsum"]
. I would like to remove the empty string from this array and get ["Lorem", "ipsum"]
.
Is there any way to do this without using the loop and traversing through each element and removing it?
question from:https://stackoverflow.com/questions/14453670/remove-an-empty-string-from-array-of-strings-jquery