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.
Senior Software Engineer at Google working on Google Meet 👨💻 Helping developers be more awesome 🔥 author, speaker & nerd 🧙🏼♂️ into JavaScript, TypeScript, Vim & pixelart ❤️
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 writething?[property]
it'll try to evaluate it as a ternary and become sad.Thank you! And thanks for spotting that! 😄