isPrototypeOfbeginner// 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.
If the object you're testing is not in the prototype chain at all, isPrototypeOf() returns false.
Challenge: Confirm that unrelated objects return false from isPrototypeOf().