Hacker News new | ask | show | jobs
by redmorphium 2326 days ago
instanceof checks the prototype chain, which is a different concept from type. Prototype chains are dynamic and exist at runtime, while Typescript types are a static concept.