Hacker News new | ask | show | jobs
by lacerrr 1101 days ago
instanceof only works with JavaScript classes. Not on regular objects that just structurally conform to a type or interface.