0
Q:

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
2

New to Communities?

Join the community