Skip to content
Latest: Publish JavaScript Packages to NPM Like a Pro!

Edit It: Check if MyCar.prototype is in mySpecialCar's prototype chain

Home>Default Function Properties>Edit It: Check if MyCar.prototype is in mySpecialCar's prototype chain

Edit It: Check if MyCar.prototype is in mySpecialCar's prototype chain

This code shows how to use the isPrototypeOf() method to search an object's prototype chain.

See it on StackBlitz