This question was asked here: Remove empty rows from an array while maintaining a record of indices with non-empty rows
If you noticed that this @Baz posted it;
"I", "am", "", "still", "here", "", "man"
"and from this I want to create the following two arrays:"
"I", "am", "still", "here", "man"
All answers to this question relate to the cycle form.
My question is: is it possible to delete all index es using empty string without any loops? ... is there any other alternative than repeating the array?
Maybe there are some regex or some jQuery that we donβt know about?
All answers or suggestions are highly appreciated.
javascript string arrays indexing removeall
Universal Grasp Nov 10 '13 at 10:34
source share