All challenges
JavaScript challenge· Frontend

Array.prototype.map

easy
15m
#frontend#javascript#typescript#arrays#higher-order

Implement map(arr, fn) mirroring Array.prototype.map: return a new array where each element is fn(value, index, array).