Get to know MDN better
Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since julio de 2015.
El método Object.getPrototypeOf() devuelve el prototipo (es decir, el valor de la propiedad interna [[Prototype]]) del objeto especificado.
El objeto cuyo prototipo va a ser devuelto.
El prototipo del objeto dado. Si no existen propiedades heredadas se devolverá null.
En ES5, lanzará una excepción TypeError si el parámetro obj no es un objeto. en ES6, El parámetro será forzado a un Object.
| ECMAScript® 2027 Language Specification # sec-object.getprototypeof |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 23 ene 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.