Object.hasOwn()
Term side of the Card
Topic: Object
Unit title: Object.hasOwn()
Categories: Method
Explanation side of the Card
Explanation: The static method that returns a boolean indicating whether the object has the specified property as its own, rather than inheriting it. It's similar to `.hasOwnProperty()` but is safer to use because it's not affected by shadowed properties.
Browser compatibility:
- The chrome browser supports this feature starting from version 93
- The edge browser supports this feature starting from version 93
- The firefox browser supports this feature starting from version 92
- The safari browser supports this feature starting from version 15.4
Availability: