isPrototypeOfintermediate// Check prototype chain membership
const proto = {}
const child = Object.create(proto)
proto.isPrototypeOf(child) // β true
Object.prototype.isPrototypeOf(child) // β trueUse isPrototypeOf() to check whether an object exists anywhere in the prototype chain of another object.
Objects created with Object.create(null) have no prototype. Object.prototype.isPrototypeOf() returns false for them.
Challenge: Verify that Object.prototype is not in the chain of a null-prototype object.