Created
October 3, 2019 12:47
-
-
Save borlaym/70875ca50367ac9700068efc0fd54407 to your computer and use it in GitHub Desktop.
The solution
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 method(value: { prop?: string }) { | |
const savedProp = value.prop; | |
if (savedProp) { | |
otherMethod(); | |
savedProp.charAt(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment