I want to check an object to see if any instances of the carDoor
prototype exist
function carDoor(side) {
this.side = side;
}
var Car = {
"door1": new carDoor("left"),
"door2": new carDoor("right")
}
Does the Car object have a door? - How can I check in a way that will work for any prototype?
Assume that you don't know or control the name of the property.