Skip to content

Instantly share code, notes, and snippets.

@getify
Forked from padolsey/1.js
Last active December 14, 2015 02:39
Show Gist options
  • Save getify/5015701 to your computer and use it in GitHub Desktop.
Save getify/5015701 to your computer and use it in GitHub Desktop.
var x = '/x/';
/x/==x
function x() { if (x._val > 5) return true; x._val = (x._val || 1) + 1; return x; }
x() === x()() === x()()()
var x = { _val: -3, valueOf: function() { return (this._val *= -1); }};
x > 2 && x < 2
var x = (function(){
function F(){}
F.prototype.a = true;
return new F();
})();
delete x.a && x.a;
var x = {};
x["[object Object]"] = x;
x[x]==x
function x() { x = {}; return function(){}; }
typeof new x < typeof x
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