The
continue
statement terminates execution of the statements in the current iteration of loop.(c) MDN
🐊Putout plugin adds ability to remove useless continue
.
npm i @putout/plugin-remove-useless-continue
{
"rules": {
"remove-useless-continue": "on"
}
}
for ((sign = decpt, i = 0); sign /= 10 !== 0; i++) {
console.log('hello');
continue;
}
for ((sign = decpt, i = 0); sign /= 10 !== 0; i++) {
console.log('hello');
}
MIT