DEV Community

Discussion on: 8 JavaScript Tips & Tricks That No One Teaches 🚀

garvitmotwani profile image
Garvit Motwani Author

Actually, I really like that method and it is way easier than .map(), that's why I recommended that, but noted! Thanks for reading the article

nickjohnmorton profile image
Nick Morton

Please explain how your method is "way easier than .map()"?

I just don't understand your thinking here, the concepts are exactly the same, the syntax is almost exactly the same (actually longer), and you're introducing a somewhat unfamiliar syntax to most to achieve something that everyone likely understands already with .map().

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