re: The JavaScript Array Map() Method VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks for your article, the explanation is very clear. On the other hand, I don't find the second example easy to grasp. In modern programming...
 

Thank you, Sandor, for pointing this out. That example was just to show that logic can be used in the map method. However, as you clearly pointed out, the filter method is a more efficient way of achieving that. In fact, my next post is on the filter method. I am going to update that example to add this point in order not to confuse anyone.

code of conduct - report abuse