Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // In IE9 (preview)
- Object.defineProperty(Array.prototype, 'forEach', {
- value: function(){ /* forEach implementation */ },
- enumerable: false
- });
- for (var p in []) {
- console.log(p); // "forEach" doesn't leak
- }
Add Comment
Please, Sign In to add comment