Created
November 9, 2019 05:40
-
-
Save imkrish/094106299346d7c63964089f4abec1d1 to your computer and use it in GitHub Desktop.
This file contains 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 maybePerson = getPerson(); | |
console.log(maybePerson?.name); | |
console.log(maybePerson?.name?.firstName); | |
console.log(maybePerson?.name?.lastName); | |
console.log(maybePerson?.name?.getFullName?.()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment