by kipple · 12y ago · 0 comments
Object.keys(obj).forEach(function (key) {
console.log(obj[key]);
});
but does that hamstring my performance?But note that in your specific case chances are the cost of a bunch of console.log() calls completely swamps the cost of either a for loop or a forEach call. console.log() has _incredibly_ complicated behavior.