Use Object.hasOwn instead
Object.hasOwn
Determines whether an object has a property with the specified name.
An object.
A property name.
Deprecated
Use
Object.hasOwn
instead