helpyourneighbour/node_modules/setprototypeof
BibaBot bfd432d094
Some checks are pending
Docker Test / test (push) Waiting to run
Add comprehensive tests for role middleware and fix package dependencies
2026-03-16 20:07:22 +00:00
..
test Add comprehensive tests for role middleware and fix package dependencies 2026-03-16 20:07:22 +00:00
index.d.ts Add comprehensive tests for role middleware and fix package dependencies 2026-03-16 20:07:22 +00:00
index.js Add comprehensive tests for role middleware and fix package dependencies 2026-03-16 20:07:22 +00:00
LICENSE Add comprehensive tests for role middleware and fix package dependencies 2026-03-16 20:07:22 +00:00
package.json Add comprehensive tests for role middleware and fix package dependencies 2026-03-16 20:07:22 +00:00
README.md Add comprehensive tests for role middleware and fix package dependencies 2026-03-16 20:07:22 +00:00

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'