Relative Content

Tag Archive for javascriptarraysperformancetheory

Performance of using map once vs. multiple times

For most of my development career, I was convinced that iterating over an array multiple times should be avoided.
After a lot of back and forth, I’m not so sure anymore, so I’d like to ask for your opinion.