end foreach javascript code example
Example: javascript foreach break
//Use some instead
[1, 2, 3].some(function(el) {
console.log(el);
return el === 2;
});
//Use some instead
[1, 2, 3].some(function(el) {
console.log(el);
return el === 2;
});