Tuesday, 6 June 2017

Is this a new way to extend an object in JavaScript?

While upgrading a private yeoman generator I stumpled upon this statement while looking through the official generator-webapp:

const { features } = answers;

I wasn't able to find anything about this, aside from the fact that it only works on node >=6.

What does this statement do? Where is this defined?



via nietonfir

No comments:

Post a Comment