Destructuring
Widely available since 2022-07-15
The destructuring assignment syntax is a JavaScript expression that unpacks values from arrays, or properties from objects, into distinct variables.
Learning resources on MDN
Browser support
- Chrome 60 Released on 2017-07-25
- Chrome Android 60 Released on 2017-08-01
- Edge 79 Released on 2020-01-15
- Firefox 55 Released on 2017-08-08
- Firefox for Android 55 Released on 2017-08-08
- Safari 11.1 Released on 2018-04-12
- Safari on iOS 11.3 Released on 2018-03-29
Specifications
- ECMAScript Language Specification (#sec-destructuring-assignment), from TC39 (Ecma International).
- ECMAScript Language Specification (#sec-destructuring-binding-patterns), from TC39 (Ecma International).