.hasOwnProperty()
Term side of the Card
Topic: Object
Unit title: .hasOwnProperty()
Categories: Method
Explanation side of the Card
Explanation: The method that returns a boolean indicating whether the object has the specified property as its own, rather than inheriting it. This is useful for checking if a property exists directly on the object.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 1
- The safari browser supports this feature starting from version 3
Availability: