flâneur — a map of the web's best reading

Destructuring assignment - JavaScript | MDN

developer.mozilla.org · 3,283 words · saved by 1 readers

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

Explore this link on the map →

related reading