Created
May 28, 2013 20:24
-
-
Save vicapow/5665816 to your computer and use it in GitHub Desktop.
wtf, js
This file contains 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
var Person = function(a){ | |
if(a) return { friends : 2 } | |
return 1 | |
} | |
// true or false, new Person(true) instanceof Person | |
// true or false, new Person(false) instanceof Person |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment