setprototypeof javascript code example
Example: isPrototypeOf js
/"Checks if an object exists in another object's prototype chain."/
function Bird(name) {
this.name = name;
}
let duck = new Bird("Donald");
Bird.prototype.isPrototypeOf(duck);
// returns true