swagger-client
Version:
SwaggerJS - a collection of interfaces for OAI specs
18 lines (16 loc) • 370 B
JavaScript
/* eslint-disable no-undef, no-restricted-globals */
const globalObject = (() => {
// new standardized access to the global object
if (typeof globalThis !== 'undefined') {
return globalThis;
}
// WebWorker specific access
if (typeof self !== 'undefined') {
return self;
}
return window;
})();
const {
btoa
} = globalObject;
export default btoa;