Skip to content

Commit bf89592

Browse files
authored
Nested Destructuring
1 parent ac95137 commit bf89592

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,19 @@ function copyToClipboard(){
180180
181181
```
182182
183+
# Nested Destructuring
184+
185+
186+
```javascript
187+
const user = {
188+
id: 459,
189+
name: 'JS snippets',
190+
age:29,
191+
education:{
192+
degree: 'Masters'
193+
}
194+
}
195+
196+
const { education : { degree } }
197+
console.log(degree) //Masters
198+
```

0 commit comments

Comments
 (0)