Skip to content

Instantly share code, notes, and snippets.

View ARHollisSr's full-sized avatar
🎯
Focusing

A.R. Hollis ARHollisSr

🎯
Focusing
  • Michigan
View GitHub Profile
@ARHollisSr
ARHollisSr / nativeJavaScript.js
Created September 16, 2019 22:47 — forked from alexhawkins/nativeJavaScript.js
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests