Skip to content

Instantly share code, notes, and snippets.

@specialunderwear
Created January 30, 2012 00:18
Show Gist options
  • Save specialunderwear/1701534 to your computer and use it in GitHub Desktop.
Save specialunderwear/1701534 to your computer and use it in GitHub Desktop.
simpler counter from 0
> var Counter = 0;
> Counter.next = function() {
> this += 1;
> return this;
> };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment