获取某个对象的原型对象

index.js

function Person() {}
Person.prototype.sayHello = function () {};

console.log(Object.getPrototypeOf(new Person())); // {sayHello: ƒ, constructor: ƒ}
原文地址:https://www.cnblogs.com/aisowe/p/15250107.html