Created
November 26, 2020 04:06
-
-
Save aiya000/9f19241465a2ebf951c0433ad0c93531 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
// not nullish | |
function f(): number { | |
return 10 | |
} | |
const x = f() ?? 20 // but ?? can use | |
console.log(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment