comercioeletronico-cotacao-api/node_modules/setprototypeof
Adler Neves 7f78b1d9eb little update 2017-04-25 01:56:54 -03:00
..
LICENSE little update 2017-04-25 01:56:54 -03:00
README.md little update 2017-04-25 01:56:54 -03:00
index.js little update 2017-04-25 01:56:54 -03:00
package.json little update 2017-04-25 01:56:54 -03:00

README.md

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