Object.setPrototypeOf
and Object.getPrototypeOf
Polyfill for Usage
$ npm install spo-gpo
As a ponyfill:
const assert = ;const setPrototypeOf getPrototypeOf = ; const obj = {};const proto = { return 'bar'; }; ; ; ;;
Globally, as a polyfill:
; const proto = { return 'bar'; }; const obj = Object; obj; // 'bar'Object; // proto