Bakhtina Sofya b84cb877be 1st comm 2 недель назад
..
test b84cb877be 1st comm 2 недель назад
LICENSE b84cb877be 1st comm 2 недель назад
README.md b84cb877be 1st comm 2 недель назад
index.d.ts b84cb877be 1st comm 2 недель назад
index.js b84cb877be 1st comm 2 недель назад
package.json b84cb877be 1st comm 2 недель назад

README.md

Polyfill for Object.setPrototypeOf

NPM Version NPM Downloads js-standard-style

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 from 'setprototypeof'