1. Home
  2. Javascript
  3. Destructuring
#javascript#object#es6

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

var dayObject = {
    morning: "Good morning",
    afternoon: "Hello there" 
};

var { morning } = dayObject;
copy
Full Javascript cheatsheet
Sitemap Git repository