1const sampleState = {
2 name: “Michael”,
3 age: 36,
4 location: {
5 state: “OK”,
6 city: “Edmond”,
7 postal: “73012”
8 },
9 relatives: {
10 wife: {
11 name: “Shelley”
12 }
13 }
14}
15
16const { age, location: { city, state }, relatives: { wife: { name } } } = sampleState