Edit It: Check if Object.prototype is in MyCar's prototype chain
This code shows how to check if Object.prototype is in a constructor's prototype chain.
See it on StackBlitzThis code shows how to check if Object.prototype is in a constructor's prototype chain.
See it on StackBlitz