setPrototypeOf < Object < JavaScript
The Object setPrototypeOf() static method sets the prototype of the specified object to another object or null.
const object = {};
const account = {
amount: 100,
customer: "Bill Smith"
}
console.log(object.amount);
// undefined
Object.setPrototypeOf(object, account);
console.log(object.amount);
// 100