Fully iterate over objects, rather than just props

This commit is contained in:
Andrew Stewart 2015-02-23 12:57:55 -08:00
parent 6e3d7c6667
commit 372c384b11
1 changed files with 2 additions and 2 deletions

View File

@ -82,10 +82,10 @@ function iterate(thing, fn, thisVal) {
}
if (H.isObject(thing)) {
Object.keys(thing).forEach(function(key) {
for (var key in thing) {
var value = thing[key];
fn.call(thisVal, value, key);
}, thisVal);
}
}
return [];