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.
proto.isPrototypeOf(obj) returns true if proto appears anywhere in the prototype chain of obj.
Challenge: Implement checkPrototype(proto, obj) that returns whether proto is in obj's prototype chain.