on-internet
← Community

What is the difference between typeof and instanceof and when should one be used vs. the other?

Stack Overflow ·

In my particular case: callback instanceof Function or typeof callback == "function" does it even matter, what's the difference? Additional Resource: JavaScript-Garden typeof vs instanceof

Comments

Sign in or sign up to comment and upvote.

No comments yet.