DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
destructure nested object properties
const { address: { country }, } = user; console.log(country); // South Africa
Source by h.daily-dev-tips.com #
PREVIOUS
NEXT
Tagged:
#destructure
#nested
#object
#properties
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit