Skip to content

Instantly share code, notes, and snippets.

View aaron-coding's full-sized avatar

Aaron Cordovez aaron-coding

View GitHub Profile
@aaron-coding
aaron-coding / nativeJavaScript.js
Last active August 29, 2015 14:13 — forked from alexhawkins/nativeJavaScript.js
Fix Syntax problem.
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++){
callback(this[i], i, this);
}
return this;