DEV Community

Discussion on: filter, map and reduce in JS. When and Where to use??

ysiad profile image

Hi, thank you for this article ! I'm still learning and it helps to review basics. Just a little comment about the variables you use to illustrate the reduce fonction : in the code it's filterUser and in the article filterUsers, and the same goes with "user" and "users", I think it can be important for the understanding that the names remain consistent between the explanation and the code (well for me it's confusing when there's an extra or a missing "s" at the end sorry ahahah).

nehal_mahida profile image
Nehal Mahida Author

Ohh my bad 😅

I will make it clear in some time.

Thanks for your feeback.🙏🏻