DEV Community

Discussion on: Improve your JavaScript with functional programming

Collapse
 
romstar profile image
Rami • Edited

For loops are faster than map, filter, and reduce. They always will be since they don't have the overhead of call backs. Correct your post at the beginning

"it's faster than the other version" needs to be removed

Collapse
 
nitinja profile image
Nitin Jadhav

You are correct, Thanks. I have updated the article to reflect the same and added a footnote for performance.