Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Noelle 9399a942b5 first commit před 4 roky
..
test first commit před 4 roky
LICENSE first commit před 4 roky
README.md first commit před 4 roky
index.d.ts first commit před 4 roky
index.js first commit před 4 roky
package.json first commit před 4 roky

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 = require('setprototypeof')