Skip to content

Commit

Permalink
tiny tweak to any
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Dec 4, 2012
1 parent 9547582 commit 9d02f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion underscore.js
Expand Up @@ -207,7 +207,7 @@
if (obj == null) return result;
if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context);
each(obj, function(value, index, list) {
if (result || (result = iterator.call(context, value, index, list))) return breaker;
if (result = iterator.call(context, value, index, list)) return breaker;
});
return !!result;
};
Expand Down

0 comments on commit 9d02f62

Please sign in to comment.