Skip to content

Instantly share code, notes, and snippets.

@webdesignberlin
Forked from emilong/branches-and-leaves.js
Created October 16, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdesignberlin/4698cbecd05e9b188d19608dd4162029 to your computer and use it in GitHub Desktop.
Save webdesignberlin/4698cbecd05e9b188d19608dd4162029 to your computer and use it in GitHub Desktop.
const {
topLevel: {
intermediate, // declaration of intermediate
intermediate: {
nested // declaration of nested
}
}
} = {
topLevel: {
intermediate: {
nested: 56
}
}
};
// intermediate is { nested: 56 }
// nested is 56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment