Home » JavaScript handler getPrototypeOf() Method

JavaScript handler getPrototypeOf() Method

by Online Tutorials Library

JavaScript handler.getPrototypeOf() Method

The handler.getPrototypeOf() method is a trap for the internal method. If target is not extensible, then this method returns the same value as Object.getPrototypeOf(target).

Syntax

Parameters

target: The target object.

Return value

This method returns an object or null.

Browser Support

Chrome NO
Edge NO
Firefox 49
Opera NO

Example 1

Test it Now

Output:

true true true  

Example 2

Test it Now

Output:

true  

Example 3

Test it Now

Output:

true  

Next TopicJavaScript handler

You may also like