Fully iterate over objects, rather than just props
This commit is contained in:
parent
6e3d7c6667
commit
372c384b11
|
@ -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 [];
|
||||
|
|
Loading…
Reference in New Issue