Content-Length: 269840 | pFad | http://github.com/roeib/JavaScript-snippets/commit/bf89592122b81864fcbdd390ac2f3a576faafe5e

7A Nested Destructuring · roeib/JavaScript-snippets@bf89592 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/roeib/JavaScript-snippets/commit/bf89592122b81864fcbdd390ac2f3a576faafe5e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy