Skip to content

Instantly share code, notes, and snippets.

@danshearmur
Forked from georgebashi/forEach.js
Created January 24, 2012 14:03
Show Gist options
  • Save danshearmur/1670314 to your computer and use it in GitHub Desktop.
Save danshearmur/1670314 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