Skip to content

Instantly share code, notes, and snippets.

@yvt
Created March 23, 2015 14:23
Show Gist options
  • Save yvt/b2155cc9e537b74c4cba to your computer and use it in GitHub Desktop.
Save yvt/b2155cc9e537b74c4cba to your computer and use it in GitHub Desktop.
var A = (function(seq) {
function YClass() {}
YClass.prototype.toString = function() { return ((++seq) & 3) == 2 ? -1 : 2; };
return new YClass();
})(0),
B = A;
if (B/A !== A/B && A === B && 1/A > 2/B) console.log('congrats!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment