DEV Community

Discussion on: Practical Functional Programming in JavaScript - Why it's worth it

Collapse
 
zulvkr profile image
zulvkr

In my understanding, for code with similar O(n) using map instead of for loop will incur small performance penalty.

How much is the O(n) in your case?