Sure you can do it in JS, but calling Object.keys then forEach (in whose closure you'll still have to reference obj[key] by the way) still doesn't feel optimal.
Object.prototype.each = function(k,v){ //... }
Object.prototype.each = function(k,v){ //... }