Determines whether an object exists in another object’s prototype chain.
SyntaxisPrototypeOf( object2 )
The following example illustrates the use of the isPrototypeOf method.
var re = new RegExp();
document.write(RegExp.prototype.isPrototypeOf(re));
Remarks
The isPrototypeOf method returns true if object2 has object1 in its prototype chain. The prototype chain is used to share functionality between instances of the same object type. The isPrototypeOf method returns false when object2 is not an object or when object1 does not appear in the prototype chain of the object2.
See also Specification15.2.4.6 Object.prototype.isPrototypeOf (V) ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011
AttributionsMicrosoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4