handler.getPrototypeOf()
handler.getPrototypeOf() is a JavaScript method in the Proxy category. Traps Object.getPrototypeOf. The syntax is getPrototypeOf(target). A typical example: handler = { getPrototypeOf(t) { return null } }. A close sibling is Proxy(), which creates a Proxy. A close sibling is handler.get(), which traps property access. A close sibling is handler.set(), which traps property assignment. A close sibling is handler.has(), which traps the in operator. More about this category: Proxy handlers for custom object behavior. Related Proxy methods: Proxy(), handler.get(), handler.set(), handler.has(), handler.construct(), handler.defineProperty(), handler.getOwnPropertyDescriptor(), handler.setPrototypeOf(). This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try handler.getPrototypeOf() immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.