I\'m looking for a way to stop iterations of underscore.js _.each() method, but can\'t find the solution. jQuery .each() can break if you do
_.each()
.each()
I believe if your array was actually an object you could return using an empty object.
_.({1,2,3,4,5}).each(function(v){ if(v===3) return {}; });