DEV Community

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

Collapse
 
rhymes profile image
rhymes

Definitely destructuring, spread, arrow functions, template literals for string interpolation, generators (even if I'm not currently using them), array includes, async/await. Curious to see how async interation works

Collapse
 
laurieontech profile image
Laurie

You can't have 5 favorites rhymes! Just kidding, love it.

Collapse
 
rhymes profile image
rhymes

hahahah ok, so if I have to choose one I'm going to say destructuring.
You can live without spread, arrow functions, literals, generators, includes and asnc await.

Destructuring in function arguments makes the code much more readable instead of having either a super long list of parameters or options as an argument.

Destructuring FTW