Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Noelle 9399a942b5 first commit il y a 4 ans
..
test first commit il y a 4 ans
LICENSE first commit il y a 4 ans
README.md first commit il y a 4 ans
index.d.ts first commit il y a 4 ans
index.js first commit il y a 4 ans
package.json first commit il y a 4 ans

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