Fixing silly commit. Thanks @cirwin

This commit is contained in:
Jeremy Ashkenas
2011-07-12 15:27:42 -04:00
parent fbae682e8f
commit 942d63129b

View File

@@ -72,7 +72,7 @@
if (obj == null) return;
if (nativeForEach && obj.forEach === nativeForEach) {
obj.forEach(iterator, context);
} else if (obj.length) {
} else if (obj.length || obj.length === 0) {
for (var i = 0, l = obj.length; i < l; i++) {
if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;
}