Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.