Created
January 4, 2011 15:39
-
-
Save kkaefer/764927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.defineProperty(global, 'foo', { | |
set: function(val) { | |
console.log(val); | |
} | |
}); | |
var array = { key: 'value', key2: 'value2', key3: 'value3' }; | |
for (foo in array); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result: