Optional chaining
The optional chaining operator ? allows you to safely access nested object properties
without having to write an if statement to check for null or undefined.
The optional chaining operator ? allows you to safely access nested object properties
without having to write an if statement to check for null or undefined.