DEV Community

Discussion on: Don’t use for loop for JavaScript Arrays

Collapse
shan61916 profile image
Shubham Sharma

Many comments about speed and performance here, but I believe in doing max-optimisations only when they make a noticeable difference for the end-user/service, thus I would endorse using Map if possible.

Collapse
sharmakushal profile image
Kushal sharma Author

Yes shubham. While making the simple or small web app the map function doesn't make any impact on performance

Some comments have been hidden by the post's author - find out more