Illegal continue statement: no surrounding iteration statement code example
Example: continue foreach javascript
elementsCollection.forEach(function(element){
if (!element.shouldBeProcessed)
return; // stop processing this iteration
// This part will be avoided if not neccessary
doSomeLengthyOperation();
});