Last active
July 18, 2016 01:34
-
-
Save bryanmytko/91ee3082cb7ac604561864196e66435d to your computer and use it in GitHub Desktop.
JS derivation forEach
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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