Question: Javascript- for the following, recreate the methods using javaScript functions. Do not use any of the respective native JS methods to implement your solutions. map()
map() Without using the native "Array.prototype.map" method of JavaScript, compose a function titled "myMap" that will take in an array of elements and executes a callback function (provided by you) on each of those elements. filter() Without using the native "Array.prototype filter" method of JavaScript, compose a function titled "myFilter" that will take in an array of elements and executes a callback function (provided by you) on each of those elements. some() (aka any) Without using the native "Array.prototype.some" method of JavaScript, compose a function titled "mySome" that will take in an array of elements and executes a callback function (provided by you) on each of those elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
