The Elvis (?.) operatorOptional Chaining Operator is supported in TypeScript 3.7.
You can use it to check for null values: cats?.miows returns null if cats is null or undefined.
You can also use it for optional method calling: cats.doMiow?.(5) will call doMiow if it exists.
Property access is also possible: cats?.['miows'].
Reference: https://devblogs.microsoft.com/typescript/announcing-typescript-3-7-beta/