获取某个对象的原型对象
index.js
function Person() {}
Person.prototype.sayHello = function () {};
console.log(Object.getPrototypeOf(new Person())); // {sayHello: ƒ, constructor: ƒ}
index.js
function Person() {}
Person.prototype.sayHello = function () {};
console.log(Object.getPrototypeOf(new Person())); // {sayHello: ƒ, constructor: ƒ}