Skip to content

Instantly share code, notes, and snippets.

@zachgoll
Created December 24, 2020 23:40
Show Gist options
  • Save zachgoll/c9f482df670311def01b15c7b804206c to your computer and use it in GitHub Desktop.
Save zachgoll/c9f482df670311def01b15c7b804206c to your computer and use it in GitHub Desktop.
const nestedObject = {
layerOne: {
layerTwo: {
layerThree: {
layerFour: {
layerFive: {
theValueWeWant: 'here is my value'
}
}
}
}
}
};
console.log(nestedObject.layerOne.layerTwo.layerThree.layerFour.layerFive.theValueWeWant);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment