Skip to content

Instantly share code, notes, and snippets.

@DeeSouza
Created January 17, 2019 10:15
Show Gist options
  • Save DeeSouza/d6042aae8e5234918d4567b8e631c87f to your computer and use it in GitHub Desktop.
Save DeeSouza/d6042aae8e5234918d4567b8e631c87f to your computer and use it in GitHub Desktop.
Desustructure Object - ES6
// Declarando Objeto
const me = {
name: "Diego",
age: 27,
job: "Web Developer"
};
// Destructuring
const { name, age, job } = me;
console.log(name, age, job); // Diego 27 Web Developer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment