auth/node_modules/setprototypeof
Chandresh Kerkar 9dd376df76 Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
..
test Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
LICENSE Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
README.md Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
index.d.ts Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
index.js Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30
package.json Initial commit: Farm Auth Service with multi-device support and device management 2025-11-28 00:47:10 +05:30

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'