1. Home
  2. Javascript
  3. Destructuring

Use it to extract specific data from an object or an array.

#javascript#object#es6
var dayObject = {
    morning: "Good morning",
    afternoon: "Hello there" 
};

var { morning } = dayObject;
copy
Full Javascript cheatsheet