--

Great point Slo Mo! All the more reason to use TypeScript or at least TypeScript type checking built-in to VS Code as you work, since type checking is just completely messed up in vanilla JavaScript.

You can’t rely on instanceof (it doesn’t work in iFrames) or .constructor (it can also be overwritten) either!

I updated the article, thanks.

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

No responses yet