Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.