DEV Community

Discussion on: JavaScript, stuff you've never heard of (probably): labeled loops?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

That's the spirit, take the wierd to the next level.

Does have the effect of early return without a function?

I think labels are just so out of place in js, cool as they are, they are not defined like variables and are more meta.

Saves writing an IFFE. Im certain this would be a touch faster then an IFFE (but it costs in reasoning about)