Implement map on a prototype challenge

This post helps me understand the solution.

Continuing the discussion from freeCodeCamp - Functional Programming: Implement map on a Prototype - Question: