Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Noelle 9399a942b5 first commit 4 anos atrás
..
test first commit 4 anos atrás
LICENSE first commit 4 anos atrás
README.md first commit 4 anos atrás
index.d.ts first commit 4 anos atrás
index.js first commit 4 anos atrás
package.json first commit 4 anos atrás

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')