Sponsored
Use these hints if you're stuck. Try solving on your own first.
Start by creating an array that will eventually be returned.
Loop over each element in the passed array. Push fn(arr[i]) to the returned array.
Solve with full IDE support and test cases