swimmingArt/node_modules/setprototypeof
angel.alducin adc5c49f69 correccion musica 2025-05-22 20:49:55 -06:00
..
test correccion musica 2025-05-22 20:49:55 -06:00
LICENSE correccion musica 2025-05-22 20:49:55 -06:00
README.md correccion musica 2025-05-22 20:49:55 -06:00
index.d.ts correccion musica 2025-05-22 20:49:55 -06:00
index.js correccion musica 2025-05-22 20:49:55 -06:00
package.json correccion musica 2025-05-22 20:49:55 -06:00

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'