web-feature: 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.
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.