You are probably here looking for the meaning of ?. operator seen in someone else’s code on some helpful QnA sites like I did. I had to dig through to find the meaning and usage of this, so I just logged it here.

The Optional Chaining Operator

?. is called the optional chaining operator and you can learn more about it on MDN docs about operators here

To quote:

The optional chaining syntax (?.) performs the chained operation on an object if it is defined and non-null, and otherwise short-circuits the operation and returns undefined. This allows you to operate on a value that may be null or undefined without causing a TypeError.

Trivia :

I first discovered the use of this operator on this SO answer