← Back to release summary

Destructuring (ES6)

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 49)
Intent stage
None

Summary

Destructuring assignment allows extracting data from arrays or objects using a syntax that mirrors array and object literals.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

Samples: https://googlechrome.github.io/samples/destructuring-es6/index.html

View on chromestatus.com