Skip to content

Instantly share code, notes, and snippets.

@emilong
Last active October 31, 2016 07:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save emilong/0142998eed1170bd79fd8bfcbd7580fb to your computer and use it in GitHub Desktop.
Save emilong/0142998eed1170bd79fd8bfcbd7580fb 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