Posts by Michel Moraes Duarte • 11 points
2 posts
-
-1
votes1
answer852
viewsA: Remove empty spaces in JS arrays
So far I have been able to solve this way, but I do not know if it is the most optimized solution: var tags = ["h1", "h2", "h3", "h4", "h5", "h6", "h7", "p", "a", "li", "span", "strong", "li"]; var…
-
-1
votes1
answer852
viewsQ: Remove empty spaces in JS arrays
I would like to know how to eliminate the gaps that are in a vector. The situation is as follows: I need to read all the text tags of an HTML page and store them in an array so that I can work them…