Sobes.tech
Junior — Senior

Custom implementation of the map method for arrays

livecode

Task condition

It is necessary to write your own version of the map method, which is usually provided to arrays in the standard library. The implementation should work without calling the built-in Array.prototype.map and support passing a callback function that receives array elements, their indices, and the array itself as arguments.