We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 5: Arrow Functions
Day 5: Arrow Functions
Sort by
recency
|
442 Discussions
|
Please Login in order to post a comment
this is the simpliest way to do it , where map() creates a new array from calling a function for every array element and does not change the original array. then just return the new array for modifyArray function.
In JS
Managed to fit in one line: