@aws/pdk
Version:
All documentation is located at: https://aws.github.io/aws-pdk
15 lines (11 loc) • 350 B
JavaScript
;
var implementation = require('./implementation');
var getProto = require('get-proto');
module.exports = function getPolyfill() {
if (typeof Reflect === 'object' && Reflect && Reflect.getPrototypeOf) {
return Reflect.getPrototypeOf;
}
return getProto
? function getPrototypeOf(O) { return getProto(O); }
: implementation;
};