Last active
June 21, 2017 22:06
-
-
Save ianks/c67e6801388d2ce87a5c2955041d40b6 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
function maybePrint(x?: string) { | |
if (x != null) { | |
// we know that x will be a string in this scope | |
console.log(x); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment