This commit is contained in:
Jeremy Ashkenas
2011-12-16 12:41:20 -05:00
parent eb42c856c4
commit 3c5686f784
3 changed files with 9 additions and 6 deletions

View File

@@ -102,6 +102,7 @@
each(obj, function(value, index, list) {
results[results.length] = iterator.call(context, value, index, list);
});
if (obj.length === +obj.length) results.length = obj.length;
return results;
};