const myVars = {
myVarA: 'aaaaa',
myVarB: 'bbbbb'
};
const { myVarA: a, myVarB: b } = myVars;
console.log('a:', a);
// a: aaaaa
Last active
December 18, 2017 10:43
-
-
Save carloscasalar/5089a74f3f7bfddc6251599a75c02780 to your computer and use it in GitHub Desktop.
ES6 links and tips
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment