The guide solutions do not work at the moment because they do not pass the testcase that gives a callback function with 3 parameters.
https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-implement-map-on-a-prototype/301230
Link to challenge:
Same with the solution for filter
lasjorg
3
I updated them.
The callback needs the index and this
(or the original array the array method was called on) passed to it.
I’m not sure how much I like Solution 3 for the filter challenge.