Resetting the value of your loop variable to the initial value then calling continue
is as close as you’ll get.
For example:
for(var i=0; i<20; i++) {
if(somecondition) {
i=-1; continue;
}
}
Resetting the value of your loop variable to the initial value then calling continue
is as close as you’ll get.
For example:
for(var i=0; i<20; i++) {
if(somecondition) {
i=-1; continue;
}
}