created by Brian LeRoux & Andrew Lunny. sparodically uncurated by David Trejo.

2010 02 12 function context fun

(x=[].reverse)() === window // true

  • Thanks to @tobeytailor for pointing out this beauty.
  • Updated: an error is thrown when the code is executed in Chrome 49
Fork me on GitHub