3 ms·
> also had better performance because you had access to the `break`, `continue` and `return` keywords. This is a great point. One more: Debugging `.map()` is
by throwaway2037 2y ago
> also had better performance because you had access to the `break`, `continue` and `return` keywords.
This is a great point.
One more: Debugging `.map()` is also much harder than a for loop.
- medstrom 2y agoI feel there are a few ways to invoke .map() in a readable way and many ways that make the code flow needlessly indirect. Should be a judgment call, and the author needs to be used to doing both looping and mapping constructs, so that they are unafraid of the bit of extra typing needed for the loop.