DEV Community

Discussion on: TypeScript Types Deep Dive - Part 2: The Absence of value

Collapse
 
256hz profile image
Abe Dolinger

Nice writeup! Just a small nitpick: the optional chaining operator is actually ?., which you'll need to use when you're checking for a property with bracket notation, i.e. thing?.[property]. If you write thing?[property] it'll try to evaluate it as a ternary and become sad.

Collapse
 
vintharas profile image
Jaime González García • Edited

Thank you! And thanks for spotting that! 😄