86
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
Output:
true true true
Example 2
Output:
true
Example 3
Output:
true
Next TopicJavaScript handler