/ student-intifada / node_modules / setprototypeof /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/a year ago -  
[   ]LICENSEa year ago727  
[TXT]README.mda year ago844 595aea1 more query options + view options [كارل مبارك]
[TXT]index.d.tsa year ago 93  
[   ]index.jsa year ago407  
[   ]package.jsona year ago1.2Kafd0ccc remove unused [كارل مبارك]
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 from 'setprototypeof'
Apache/2.4.38 (Debian) Server at www.karls.computer Port 80