-
-
Save getify/5015701 to your computer and use it in GitHub Desktop.
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 x = '/x/'; | |
/x/==x |
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
function x() { if (x._val > 5) return true; x._val = (x._val || 1) + 1; return x; } | |
x() === x()() === x()()() |
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 x = { _val: -3, valueOf: function() { return (this._val *= -1); }}; | |
x > 2 && x < 2 |
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 x = (function(){ | |
function F(){} | |
F.prototype.a = true; | |
return new F(); | |
})(); | |
delete x.a && x.a; |
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 x = {}; | |
x["[object Object]"] = x; | |
x[x]==x |
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
function x() { x = {}; return function(){}; } | |
typeof new x < typeof x |
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 x = Infinity; | |
x - 1 === x + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment