Created
October 3, 2019 12:44
-
-
Save borlaym/1c1735d12745ad5afc9c5362ad4661ec to your computer and use it in GitHub Desktop.
The full issue
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
var obj = { prop: "test" }; | |
function otherMethod() { | |
delete obj.prop; | |
} | |
function method(value: { prop?: string }) { | |
if (value.prop) { | |
otherMethod(); | |
value.prop.charAt(0); | |
} | |
} | |
method(obj); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment