DEV Community

Discussion on: What is your favourite ES6 feature?

Collapse
 
cmgustin profile image
Chris Gustin

Iā€™m a big fan of .forEach() and the related .filter() and .map() methods.

Much cleaner and easier to read than the old C-style iterative loops in my opinion, and a great addition to the language given how much of modern JS and front-end dev involves looping through large amounts of data in some way or another.

Collapse
 
justtanwa profile image
Tanwa Sripan

I agree, I also like array methods, they are very handy :D