Skip to content

Instantly share code, notes, and snippets.

View ubaidh's full-sized avatar
:electron:

ubaid khatlani ubaidh

:electron:
  • Quality innovative software solutions
  • kashmir
  • 07:56 (UTC +05:30)
View GitHub Profile
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active November 1, 2024 12:00
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