Actually, getting this because of auto-fix for no-array-for-each
rule, it fix return
in nested .forEach
to continue
.
It's not clear what to break/continue, when loop is nested.
for (const foo of bar) {
for (const baz of foo) {
// ...
break;
}
}
for (const foo of bar) {
while(foo.pop()) {
// ...
continue;
}
}
A even confusing case
for (const foo of bar) {
switch (foo) {
case 1:
// ...
break;
case 2:
// ...
continue;
}
}
function processFoo() {
for (const baz of foo) {
// ...
break;
}
}
for (const foo of bar) {
processFoo(foo)
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too