您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Noelle 9399a942b5 first commit 4 年前
..
test first commit 4 年前
LICENSE first commit 4 年前
README.md first commit 4 年前
index.d.ts first commit 4 年前
index.js first commit 4 年前
package.json first commit 4 年前

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