This method cannot check whether the property is in the object's prototype chain; the property must be a member of the object itself. The
in operation checks whether there is a property named property in the object. You can also check the object's prototype to determine whether the property is part of the prototype chain.