Of course, a label! That explains it, thanks! I didn't have a JS reference handy at the time (and couldn't find it in the Mozilla ref in the short amount of time I had).
I have actually used labels in JS before, which resulted in a lot of questions from my colleagues.
I think the loop: for(...){break loop;} thing is acceptable (if for can not be avoided anyway).
I have actually used labels in JS before, which resulted in a lot of questions from my colleagues.
I think the loop: for(...){break loop;} thing is acceptable (if for can not be avoided anyway).