JSFiddle - React, Tailwind, and code Playground
by STHayden
JavaScript
Array.prototype.map = function(a) {
const result = [];
for(var i; i < this.length - 1; i++) {
result.push(a(this[i], i, this))
};
return result;
};
console.log(1)
console.log([1,2,3].map((v) => { return v + 1 }))