DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
destructuring nested objects
const obj = {a: {b: 'xyz'}}; const {a: {b}} = obj; console.log(b); // xyz
Source by medium.com #
PREVIOUS
NEXT
Tagged:
#destructuring
#nested
#objects
ADD COMMENT
Topic
COMMENT
Name
7+3 =
Submit