Nov 27, 2020
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.