Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nested Object

const name = ((user || {}).personalInfo || {}).name;
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #nested #Object
ADD COMMENT
Topic
Name
1+5 =