Object.defineProperty(window, 'Array', { get: function() { return [].constructor; }, enumerable: true }); for(var i in window) { if(i == 'Array') { console.log(true); } }