BASELINE NowYouCanUse.com
Widely Available JavaScript
id: object-hasown

Object.hasOwn()

The Object.hasOwn() static method checks whether an object has a given property. It's a more robust alternative to the Object.prototype.hasOwnProperty() method.
Baseline Status: Achieved Widely Available on Sep 14, 2024 (Cross-browser Newly Available since Mar 14, 2022).
Desktop Browser Engine Support
Google Chrome
93
Supported
Mozilla Firefox
92
Supported
Apple Safari
15.4
Supported
Microsoft Edge
93
Supported
Mobile Browser Engine Support
Chrome Android
93
Firefox Android
92
Safari iOS
15.4
Specifications and References