ObjecthasOwn
ObjecthasOwn is a built‑in static method of the JavaScript Object constructor introduced in ECMAScript 2022. The method checks whether a given object owns a property with a specified key, returning a boolean. It is equivalent to calling the deprecated Object.prototype.hasOwnProperty, but without relying on the prototype chain and without requiring the method to be on the object itself.
The syntax is ObjecthasOwn(object, propertyKey). The first argument is the target object, and the second can
ObjecthasOwn is designed to address common bugs that arise when objects are used as dictionaries and properties
Support for ObjecthasOwn is available in modern browsers (Chrome, Edge, Firefox, Safari) from version 105 onwards,