Skip to content

Instantly share code, notes, and snippets.

@bryanmytko
Last active July 18, 2016 01:34
Show Gist options
  • Save bryanmytko/91ee3082cb7ac604561864196e66435d to your computer and use it in GitHub Desktop.
Save bryanmytko/91ee3082cb7ac604561864196e66435d to your computer and use it in GitHub Desktop.
JS derivation forEach
Array.prototype.forEacher = function(cb){
var len = this.length;
for(var i = 0; i < len; i++){
cb(this[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment