Created
October 22, 2020 21:49
-
-
Save dimsis/c23ae794d91581471b2d727d121734a0 to your computer and use it in GitHub Desktop.
Optional Chaining and Nullish Coalescing
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 authorName = book?.author?.firstName ?? 'Unknown' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment