Last active
February 7, 2018 16:20
-
-
Save viniciusdacal/50555447e051439f871493e530287d0c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
name: 'John', | |
surname: 'Doe', | |
address: null, | |
}; | |
const userName = user && user.name // John | |
const address = user && user.address // null | |
const zipCode = user && user.address && user.address.zipcode // null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment