Class checking: "instanceof" thumbnail
Class checking: "instanceof"
javascript.info
The instanceof operator allows to check whether an object belongs to a certain class. It also takes inheritance into account. The syntax is: It also works with constructor functions: …And with built-in classes like Array:
2 Users
0 Comments
18 Highlights
0 Notes

Top Highlights

  • The instanceof operator allows to check whether an object belongs to a certain class.
  • It also takes inheritance into account.
  • The syntax is:
  • It also works with constructor functions:
  • …And with built-in classes like Array:

Tags

Javascript

Ready to highlight and find good content?

Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.