Edit It: Check if two given prototypes exist in mySpecialCar's prototype chain
This code shows how to check if a specific prototype is in another object's prototype chain.
See it on StackBlitzThis code shows how to check if a specific prototype is in another object's prototype chain.
See it on StackBlitz