[TypeScript] Optional Chaining with TypeScript 3.7
TypeScript 3.7 adds support for optional chaining. This lesson shows you how to use it in your code to handle properties that can be null or undefined.
interface A {
b?: B;
}
interface B {
c: string;
}
const a: A = {};
console.log(a.b?.c);