TypeScript 3.7 added support for the ?.
operator, also known as the optional chaining operator. We can use this operator to descend into an object whose properties potentially hold the values null
or undefined
without writing any null checks for intermediate properties.
Marius Schulz