Is there anything I am missing about forEach loop this gives an error
VM847:5 Uncaught SyntaxError: Illegal break statement at Array.forEach () at :2:9
And this is working fine for normal for loop.
var myArray = [{name:'John'}, {name:'Doe'}, {name:'Mice'}]
myArray.forEach(function(item, i){     
    if(item.name == 'Doe'){
      console.log(i);
      break;
    }
});
 
    