I am trying to break out of an inner foreach loop using JavaScript/jQuery.
result.history.forEach(function(item) {
loop2:
item.forEach(function(inner
Can't do it. According to MDN:
There is no way to stop or break a forEach() loop other than by throwing an exception. If you need such behaviour, the .forEach() method is the wrong tool, use a plain loop instead. If you are testing the array elements for a predicate and need a boolean return value, you can use every() or some() instead.