Skip to content

Instantly share code, notes, and snippets.

View RowdyCoder's full-sized avatar
🎯
Focusing

A.R. Hollis RowdyCoder

🎯
Focusing
  • Michigan
View GitHub Profile
@RowdyCoder
RowdyCoder / 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