lyxaira.glass c1a3f3246e Escoger Renglon y Artesania, desplegados del JSON. | 5 anos atrás | |
---|---|---|
.. | ||
test | 5 anos atrás | |
LICENSE | 5 anos atrás | |
README.md | 5 anos atrás | |
index.d.ts | 5 anos atrás | |
index.js | 5 anos atrás | |
package.json | 5 anos atrás |
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.
$ 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')