Comment by culi
4 hours ago
I see what you mean, thanks. instanceof works if you're using javascript classes but not for "types".
You can't do `instanceof Dog`. `instanceof` is a JavaScript feature
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
No comments yet
Contribute on Hacker News ↗