TLDR Web Dev · QUICK LINKS
WRITE MORE RELIABLE JAVASCRIPT WITH OPTIONAL CHAINING
Summary from the TLDR Web Dev newsletter
Optional chaining (?.) in JavaScript is a cleaner, safer, and more concise way to access deeply nested object properties by short-circuiting the evaluation and returning undefined without errors when encountering null or undefined values.