151. implement Array.prototype.map()
Share
medium - accepted / - tried
Please implement your own Array.prototype.map().
[1,2,3].myMap(num => num * 2)
please avoid using Array.prototype.map() directly in your code.
Related Lists
implement it by yourself