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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.