Skip to content

Instantly share code, notes, and snippets.


Rohit Luthra RohitLuthra19

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 / 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);
You can’t perform that action at this time.