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

ChromeNO
EdgeNO
Firefox49
OperaNO

Example 1

Test it Now

Output:

true true true

Example 2

Test it Now

Output:

true

Example 3

Test it Now

Output:

true





Latest Courses