DEV Community

Discussion on: What's your favorite addition to ES2015+

Collapse
 
kenbellows profile image
Ken Bellows

Ooooph tough decision... probably the combination of proper native iterators, the for ... of loop, and generators, which all combine together to amazing effect.

Collapse
 
laurieontech profile image
Laurie

I watched an awesome talk on generators last week. Not something I’d used before!

Collapse
 
kenbellows profile image
Ken Bellows

They're super cool and can really clean up your code in some cases, especially when you get into async iterators/generators. My second article ever on dev.to was actually about iterators, generators, symbols, for ... of, and how it all fits together!

Thread Thread
 
laurieontech profile image
Laurie

Oh awesome. Will check it out!