Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

26 Commits

Repository files navigation

Polyfill for Object.setPrototypeOf

NPM VersionNPM Downloadsjs-standard-style

A simple cross platform implementation to set the prototype of an instantiated object. Supports all modern browsers and at least back to IE8.

Usage:

$ npm install --save setprototypeof
varsetPrototypeOf=require('setprototypeof')varobj={}setPrototypeOf(obj,{foo: function(){return'bar'}})obj.foo()// bar

TypeScript is also supported:

importsetPrototypeOffrom'setprototypeof'

About

Polyfill for Object.setPrototypeOf

Resources

Code of conduct

Security policy

Stars

51 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages