website-2018/node_modules/setprototypeof
2018-08-20 18:40:21 -04:00
..
index.d.ts Under Construction Site Ready 2018-06-12 20:32:09 -04:00
index.js Under Construction Site Ready 2018-06-12 20:32:09 -04:00
LICENSE Under Construction Site Ready 2018-06-12 20:32:09 -04:00
package.json Hoco Judging 2018-08-20 18:40:21 -04:00
README.md Under Construction Site Ready 2018-06-12 20:32:09 -04:00

Polyfill for Object.setPrototypeOf

A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8.

Usage:

$ npm install --save setprototypeof
var setPrototypeOf = require('setprototypeof');

var obj = {};
setPrototypeOf(obj, {
	foo: function() {
		return 'bar';
	}
});
obj.foo(); // bar

TypeScript is also supported:

import setPrototypeOf = require('setprototypeof');