papercats/node_modules/setprototypeof
2017-02-23 22:10:36 -06:00
..
index.js Change to Node.js project. Add some server tests. 2017-02-23 22:10:36 -06:00
LICENSE Change to Node.js project. Add some server tests. 2017-02-23 22:10:36 -06:00
package.json Change to Node.js project. Add some server tests. 2017-02-23 22:10:36 -06:00
README.md Change to Node.js project. Add some server tests. 2017-02-23 22:10:36 -06: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