Skip to content

Instantly share code, notes, and snippets.

@dun4n
Last active August 29, 2015 13:56
Show Gist options
  • Save dun4n/9115023 to your computer and use it in GitHub Desktop.
Save dun4n/9115023 to your computer and use it in GitHub Desktop.
Incremental ID Generator
function Generator() {
var ac = arguments.callee
return !ac.c && (ac.c = 0) || ac.c++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment