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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy