/ ai-anxieties-audio / node_modules / setprototypeof /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/2 years ago -  
[   ]LICENSE2 years ago727 f0d2fc9 test post-receive hook [كارل مبارك]
[TXT]README.md2 years ago844 15de0e0 styling, texts [كارل مبارك]
[TXT]index.d.ts2 years ago 93  
[   ]index.js2 years ago407 15de0e0 styling, texts [كارل مبارك]
[   ]package.json2 years ago1.2K120707f added node version q18.16 to dependincies [كارل مبارك]
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