Object.hasOwn provides an easier-to-use, static method version of Object.prototype.hasOwnProperty. For example, Object.hasOwn({ prop:42 }, 'prop') returns true.
Explainers: https://v8.dev/features/object-has-own https://github.com/tc39/proposal-accessible-object-hasownproperty