Type narrowing over x
does not reflect in a statement of the format false && x
#44156
Labels
Duplicate
An existing issue was already created
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
π Search Terms
type narrowing, object is possibly undefined, false &&
π Version & Regression Information
4.3 - nightly
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
x
is not narrowed fromundefined | string
tostring
infalse && x.toString()
.π Expected behavior
x
is narrowed fromundefined | string
tostring
infalse && x.toString()
.The text was updated successfully, but these errors were encountered: