Posts by Murilo Santos Castro • 31 points
1 post
-
3
votes3
answers835
viewsQ: How to go through an array skipping some indices?
There’s a native way to do this? for (var i in vetor) { for (var j in vetor) { if (i == j) { // pula o i break; } } } Is there any way to skip the i within the parentheses of the second for?…