Skip to content

Instantly share code, notes, and snippets.

@SomeoneWeird
Created February 18, 2014 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SomeoneWeird/9064675 to your computer and use it in GitHub Desktop.
Save SomeoneWeird/9064675 to your computer and use it in GitHub Desktop.
> var i = {
num: 1,
valueOf: function() {
return this.num++;
}
}
undefined
> i == 1 && i == 2 && i == 3
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment