Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

setprototypeof

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

setprototypeof

A small polyfill for Object.setprototypeof

    1.2.0latest
    Github

Version published
Maintainers
1
Weekly downloads
46,891,921
increased by8.82%

Weekly downloads

Readme

Source

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'

Keywords

FAQs

What is setprototypeof?

A small polyfill for Object.setprototypeof

Is setprototypeof popular?

The npm package setprototypeof receives a total of 44,702,777 weekly downloads. As such, setprototypeof popularity was classified as popular.

Is setprototypeof well maintained?

We found that setprototypeof demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 18 Jul 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc