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 StackBlitzThis code shows how to use the isPrototypeOf() method to search an object's prototype chain.
See it on StackBlitz