Hey.

1) Can someone tell me if there is a solution for IE dinosaur?

2) Question resolved thanks to Specter

Object.prototype.each = function() { for (var prop in this) { if (!this.hasOwnProperty(prop)) continue; this[prop]+=100; return this } } var obj = { name: 'Вася', age: 25 }; obj.each() alert(obj.name) alert(obj.age) 

The object does not change 2 values, but only one.

    1 answer 1

    The object does not change 2 values, but only one

    return out of cycle

    • Thank you to Specter - zloctb