Re:WTFJS?
by kwamenum86 on Friday February 12, 2010 @09:15PM
(#1122401)
When you run reverse with a context of anything besides an array you end up getting back that context. This is why assigning [].reverse to x, then running x() returns window. It is an interesting quirk. Not sure if this is the js specified behavior though.
[ Parent
| on HN ]