loading...

re: 15 must-know JavaScript array methods in 2020 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Even with your example, it will be not that clear. I think the difference is made by the definition. But anyway, I will update the code with your e...

It's at least clearer that the intent of map is returning an array with modified data, not performing an action on each element.

I totally agree. I've updated the example with yours. Thanks again for your suggestion.

code of conduct - report abuse