Skip to content

Instantly share code, notes, and snippets.

@jdlich
Created August 2, 2011 22:18
Show Gist options
  • Select an option

  • Save jdlich/1121371 to your computer and use it in GitHub Desktop.

Select an option

Save jdlich/1121371 to your computer and use it in GitHub Desktop.
Number.prototype.times = function(value) {
for (var i = 0; i < this; i++) {
value();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment