easyJavaScript

Implement Custom Map Function

Implement your own version of JavaScript Array.map without using the built-in map method. The function should accept a callback and return a new transformed array.
Ensure function signatures match starter code to run test cases.
index.js
Loading...

Test Case #1

Input: [1,2,3], x=>x*2

Expected: [2,4,6]