_.forIn(object, [iteratee=_.identity])
functionFoo() { this.a=1; this.b=2; } Foo.prototype.c=3; _.forIn(newFoo, function(value, key) { console.log(key); }); // => Logs 'a', 'b', then 'c' (无法保证遍历的顺序)。
_.forIn(object, [iteratee=_.identity])
functionFoo() { this.a=1; this.b=2; } Foo.prototype.c=3; _.forIn(newFoo, function(value, key) { console.log(key); }); // => Logs 'a', 'b', then 'c' (无法保证遍历的顺序)。