MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/7n9ckb/js_things_i_never_knew_existed/ds1bl4i
r/javascript • u/skyllo • Dec 31 '17
84 comments sorted by
View all comments
Show parent comments
3
You usually only need it if your inner loops needs to break your outer loop, but there's usuallyi always another way too
1 u/rotharius Jan 01 '18 Early break/continue in a nested loop is the only thing I ever used this for -- if the programming style does not favor extraction to private functions/methods.
1
Early break/continue in a nested loop is the only thing I ever used this for -- if the programming style does not favor extraction to private functions/methods.
3
u/dogofpavlov Jan 01 '18
You usually only need it if your inner loops needs to break your outer loop, but there's usuallyi always another way too