...

/

Manipulating Prototypes

Manipulating Prototypes

getting and setting prototypes of objects using the Reflect API

We can get the prototype of an object using the Reflect API.

Node.js
let classOfMyAccount = Reflect.getPrototypeOf( myAccount );
console.log( classOfMyAccount.prototype === myAccount.prototype );

As you can see from the example, this prototype is ...