Skip to content

Instantly share code, notes, and snippets.

@dimsis
Created Oct 22, 2020
Embed
What would you like to do?
Optional Chaining and Nullish Coalescing
const authorName = book?.author?.firstName ?? 'Unknown'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment