A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Object/isPrototypeOf below:

isPrototypeOf · WebPlatform Docs

isPrototypeOf Summary

Determines whether an object exists in another object’s prototype chain.

Syntax
isPrototypeOf( object2 )
object2
Required. Another object whose prototype chain is to be checked.
Examples

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 Specification

15.2.4.6 Object.prototype.isPrototypeOf (V) ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011

Attributions

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