References
Object.getPrototypeOf()
Leírás
Megadja obj prototípus-objektumát.
Szintaxis
Object.getPrototypeOf(obj)Példa
const prototype1 = {}
const object1 = Object.create(prototype1)
console.log(Object.getPrototypeOf(object1) === prototype1)
// Expected output: true