Skip to content

Commit

Permalink
function formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jul 13, 2011
1 parent 779a28d commit 347d729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions underscore.js
Expand Up @@ -181,12 +181,12 @@
// Determine if at least one element in the object matches a truth test.
// Delegates to **ECMAScript 5**'s native `some` if available.
// Aliased as `any`.
var any = _.some = _.any = function (obj, iterator, context) {
var any = _.some = _.any = function(obj, iterator, context) {
iterator = iterator || _.identity;
var result = false;
if (obj == null) return result;
if (nativeSome && obj.some === nativeSome) return obj.some(iterator, context);
each(obj, function (value, index, list) {
each(obj, function(value, index, list) {
if (result |= iterator.call(context, value, index, list)) return breaker;
});
return !!result;
Expand Down

0 comments on commit 347d729

Please sign in to comment.