DEV Community

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

Collapse
 
pris_stratton profile image
pris stratton

What is map built on - is it a for loop underneath or is it a recursive function, or does that depend on the implementation of JS you are using? Not sure why it is slower than a for loop.

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