Problem
I'm trying to loop through an array of Elements in VueJS and return the first one that does not have a given class. However, whenever I use Break, Vue refuses to compile
Code
let section = null;
this.sectionList.forEach(s => {
if(!s.classList.contains('complete')){
section = s;
break;
}
});
return section;
The Error
app.js:73816 Uncaught Error: Module build failed: SyntaxError: C:/Users/Lewis/homestead/projects/bookitzone/resources/js/frontend/components/sections/form-section.vue: Unsyntactic break (72:20)