TypeScript 3.7 is there. The new Version brings a series of already announced Features that could already be in the Beta - and RC-Phase is the Version tested. Including a Feature in particular stands out: the Optional Chaining. Thus, it is in TypeScript now possible for Code execution to abort, if
The Central Feature for Optional Chaining in TypeScript 3.7 the
?Operator, which is used for the optional Property Access. A simple example is the Release Notes the following Code:
let x = foo?.bar.baz();
foo is.bar.baz() is only executed if the
foo is defined. This is not the case, the execution in the question mark.
Optional Chaining: Low Browser compatibility