This commit is contained in:
Jeremy Ashkenas
2011-10-24 10:12:43 -04:00
parent 9b7154878f
commit 38b1fe0dd3

View File

@@ -205,8 +205,8 @@
var found = false;
if (obj == null) return found;
if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) != -1;
any(obj, function(value) {
if (found = value === target) return true;
found = any(obj, function(value) {
if (value === target) return true;
});
return found;
};