DEV Community

Discussion on: Implementation of ES6 Map() function

prashantandani profile image
Prashant Andani Author • Edited on

Updated... Thanks for pointing that out... 'Const' should do and also I missed index.

Map will pass the current value to the callback function which in this case is 'fn', which has 'currentValue' and 'index' as a parameter...