dockerized_openAger/nodered/rootfs/data/node_modules/setprototypeof
valki 664c6d8ca3 Intial Commit 2020-10-17 18:42:50 +02:00
..
test Intial Commit 2020-10-17 18:42:50 +02:00
LICENSE Intial Commit 2020-10-17 18:42:50 +02:00
README.md Intial Commit 2020-10-17 18:42:50 +02:00
index.d.ts Intial Commit 2020-10-17 18:42:50 +02:00
index.js Intial Commit 2020-10-17 18:42:50 +02:00
package.json Intial Commit 2020-10-17 18:42:50 +02: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 = require('setprototypeof')