DEV Community


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

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.

vintharas profile image
Jaime 🔥🧙‍♂️🔥 Author • Edited

Thank you! And thanks for spotting that! 😄