object.getprototypeof
Version:
An ES5 mostly-spec-compliant `Object.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible
22 lines (16 loc) • 457 B
JavaScript
var callBind = require('call-bind');
var define = require('define-properties');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var polyfill = callBind(getPolyfill(), Object);
var shim = require('./shim');
var bound = function getPrototypeOf(value) {
return polyfill(value);
};
define(bound, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = bound;
;