A small polyfill for Object.setPrototypeOf with cross-platform compatibility
82
A utility that updates object prototypes without changing the original object reference.
=== identity with the original object @testnull returns the same object and results in a null prototype chain @test@generates
function rebind(target, newPrototype);
function removePrototype(target);
function rebindAll(targets, newPrototype);
module.exports = { rebind, removePrototype, rebindAll };Cross-runtime helper for changing an object's prototype while keeping the same reference.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-setprototypeof