1.2.0 • Published 6 years ago

setprototypeof v1.2.0

Weekly downloads
30,571,355
License
ISC
Repository
github
Last release
6 years ago

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'
http-errorsexpresscomponennentteasy-select-rnchinjowwchinjowvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imageextensible-node-serverrn-send-sms@arisageha/react-lazyload@arisageha/react-lazyload-fix@iberry/iberry-factoryreact-native-template-rfbaseline-messaging-expressairscanairscan-examplebb-chat@motionpicture/kwskfs-factoryreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@wgytcraft/express@frxf/frxfdeneme323112@texttree/demo-bsa-reference-rcl@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjames@oknesar/expressreact-native-covid-sdkanime-randomeni-chatreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewercthpb-plugin-social@signalchain/expressexpress-easy-staticreact-native-printer-brothersrn-pdf-reader-offlinereact-native-shekhar-bridge-testcogoportutilssoi.tekcolevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29wilscanner@oiti/documentoscopy-react-nativequoc-testreact-native-slider-kfnodejs-fileshareunblock-block-save-variableshexa-node-common@infinitebrahmanuniverse/nolb-setcclibyarntest@saaspe/componentshyperpass-sdkexpress-api-pack-tropea-bootstraapluminos-ui-corelizeknushiliyahaotadiesklif-ui-kitsklif-api@everything-registry/sub-chunk-2740jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgondp149-tablesklif-uireact-native-jawwy_samplegriffin-ui-library@wacoco/y@unexpress/expressexpress-lessytaman-baca-masyarakattanngotest-carosello-campustest-library-123test-haptik-libteadanteatest-npm-jjmessiwinx-form-winxwjxday-5wjxday-9wodax-umi-plugin-polyfillsweb-component-tester-bundlevue-button-test1webdatabasetest1webdatabasetest10webdesa-laravel-final-release
1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago