Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Rohit Luthra RohitLuthra19

🎯
Focusing
Block or report user

Report or block RohitLuthra19

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@RohitLuthra19
RohitLuthra19 / nativeJavaScript.js
Created Oct 5, 2018 — forked from alexhawkins/nativeJavaScript.js
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
View nativeJavaScript.js
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests
You can’t perform that action at this time.