Skip to content

Instantly share code, notes, and snippets.

@steida
Created April 29, 2009 17:45
Show Gist options
  • Save steida/103920 to your computer and use it in GitHub Desktop.
Save steida/103920 to your computer and use it in GitHub Desktop.
QWE()(function() {
Array.supplement({
forEach: function(fn, context) {
for (var i = 0, l = this.length >>> 0; i < l; i++) {
if (i in this) fn.call(context, this[i], i, this);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment