GitXplorerGitXplorer
w

setprototypeof

public
54 stars
12 forks
1 issues

Commits

List of commits on branch master.
Unverified
129b00faad103bb9ceace038c85fda03628bbc13

fix typo

pphapdinh committed 5 years ago
Unverified
52d00b3a6dbd92fbf36c8019a1e36179b4a0f308

1.2.0

wwesleytodd committed 6 years ago
Unverified
1466a1381aff5f9eda3109f54bad88636b6fedc7

added pre/post publish automation

wwesleytodd committed 6 years ago
Unverified
47b3bdfcb92c488ed4e61fad822dc673575abe4f

update standard

wwesleytodd committed 6 years ago
Unverified
5c309caa7afb18c856a1d7e2d3fc1375a41e2da2

Replace direct hasOwnProperty with Object.prototype access

wwesleytodd committed 6 years ago
Unverified
51cb4715e0de7a0554bc11293f0ac602dc07954f

update mocha

wwesleytodd committed 6 years ago

README

The README file for this repository.

Polyfill for Object.setPrototypeOf

NPM Version NPM Downloads js-standard-style

A simple cross platform implementation to set the prototype of an instantiated 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'