Last time, we wrote a map method for arrays (which I had to call mapp
, so that we didn’t clash with the native version present in many browsers). To use the map method, you have to provide a callback function that would be called for every element in the array. […]