Destructuring assignment - JavaScript | MDN
The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.
Destructuring - JavaScript | MDN Skip to main content Skip to search Destructuring Baseline Widely available This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2016. Learn more See full compatibility The destructuring syntax is a JavaScript syntax that makes it possible to unpack values from arrays, or properties from objects, into distinct variables. It can be used in locations that receive data (such as the left-hand side of an assignment or anywhere that creates new identifier bindings). Try it let a, b, rest
related reading
- Object initializer - JavaScript | MDNdeveloper.mozilla.org
- Classes - JavaScript | MDNdeveloper.mozilla.org
- JS cheat sheetprogramming-idioms.org
- Paul Butler – Rust for web devs: Destructuringpaulbutler.org
- CoffeeScriptcoffeescript.org
- Demystifying Code Bundling with JavaScript Modules - Simple Threadsimplethread.com
- TypeScript: Documentation - TypeScript for the New Programmertypescriptlang.org
- Iteration protocols - JavaScript | MDNdeveloper.mozilla.org
- JavaScript Articles - 30 seconds of code30secondsofcode.org
- What the fuck is a closure? ・ Dan’s JavaScript Glossarywhatthefuck.is
- TypeScript: Documentation - The Basicstypescriptlang.org
- set - JavaScript | MDNdeveloper.mozilla.org