Details
-
New Feature
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
-
None
Description
Ability to stop iterating on a forEach by returning false, similar to jQuery: http://api.jquery.com/jQuery.each/
The following code would print only 1 & 2.
[1,2,3,4].forEach(function(v) { print(v); if (v >= 3)
{return false; }})