What's your favorite addition to ES2015+

Laurie - Jun 11 '19 - - Dev Community

If you're unfamiliar with ECMAScript I have an explanation here

I'd love to hear about everyone's favorite piece of ES2015+ syntax and how it makes your JavaScript development experience better!

I'll start with mine, destructuring assignment! I love that I can do this

({data}) => {
    data.item
}
Enter fullscreen mode Exit fullscreen mode

Instead of this

(data) => {
    data.data.item
}
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .