Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

setprototypeof

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

setprototypeof

A small polyfill for Object.setprototypeof

    1.2.0latest

Version published
Maintainers
1
Weekly downloads
39,963,146
decreased by-4.8%

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 37,840,886 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. It has 1 open source maintainer collaborating on the project.

Last updated on 18 Jul 2019
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc