Object.isPrototypeOf() (Method)

A test for the relationship between two objects to ascertain direct parentage.


ECMAScript edition - 3
JavaScript - 1.5
JScript - 5.5
Internet Explorer - 5.5
Netscape - 6.0
Property/method value type:Boolean primitive
JavaScript syntax:-myObject.isPrototypeOf(anObject)
Argument list:anObjectThe object whose prototype is to be tested

The receiving object is tested for identity against the object referred to by the prototype property of the object passed as an argument. If the object in the argument is a direct child object through the prototype chain, then this method returns a true value.

See also:HasInstance()


ECMA 262 edition 3 - section -