Sha256: 647c4d0a42068e28dd313549e3024dc79f489e64ece770ca0bc8d56997c01bb6
Contents?: true
Size: 401 Bytes
Versions: 40
Compression:
Stored size: 401 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 ```
Version data entries
40 entries across 40 versions & 5 rubygems