Skip to main content

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