Created
March 31, 2020 06:40
-
-
Save manakuro/23082b8b73a629838e520452c15b399d 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
if (user && user.addressInfo) { | |
let zipcode | |
if (user.addressInfo.zipcode) { | |
zipcode = user.addressInfo.zipcode | |
} else { | |
zipcode = '' | |
} | |
// do something | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment