In 2020 JavaScript gained a new feature – optional chaining. It solves a problem we've had ... forever. How do you access the 3rd level greet , if object , deepProp , and deeperProp might be undefined? You could rely on JavaScript's evaluation semantics. Last value from expression is returned.
1 Comment