Object.hasOwn() is intended as a replacement for Object.prototype.hasOwnProperty() (mdn docs)
Object.hasOwn()
Object.prototype.hasOwnProperty()
medium post, by igor gonchar