Sha256: 16313d5e1a1c1686235057bdfd2b458359939d97b8bae4702a37d4f8d4ded117
Contents?: true
Size: 500 Bytes
Versions: 40
Compression:
Stored size: 500 Bytes
Contents
# Polyfill for `Object.setPrototypeOf` 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 ``` ```javascript var setPrototypeOf = require('setprototypeof'); var obj = {}; setPrototypeOf(obj, { foo: function() { return 'bar'; } }); obj.foo(); // bar ``` TypeScript is also supported: ```typescript import setPrototypeOf = require('setprototypeof'); ```
Version data entries
40 entries across 36 versions & 13 rubygems