Skip to content

Instantly share code, notes, and snippets.

@georgebashi
Created January 24, 2012 14:02
Show Gist options
  • Save georgebashi/1670305 to your computer and use it in GitHub Desktop.
Save georgebashi/1670305 to your computer and use it in GitHub Desktop.
Array.prototype.forEachG = function(f) {
for (var i = 0; i < this.length; i++) {
f(this[i], i, this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment