You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionf(arg1: any+){constval1=arg1?.val;// implication 1: if val1 is truthy => arg1 is also truthyconstval2=val1?.prop;// implication 2: if val2 is truthy => val1 is also truthyconstquery=val2 ? {someProp: val1.prop// here we know based on implication 2 that val1 is truthy} : null;query;}
The text was updated successfully, but these errors were encountered:
See the example below.
Example
The text was updated successfully, but these errors were encountered: