Sha256: 16b3b09b789f91e5e1658d85e24f3f21fa6e58d7d1add1447325a6c1413f8706
Contents?: true
Size: 362 Bytes
Versions: 3
Compression:
Stored size: 362 Bytes
Contents
let _btoa; if ( typeof window !== 'undefined' && typeof window.btoa === 'function' ) { _btoa = window.btoa; } else if ( typeof Buffer === 'function' ) { _btoa = str => new Buffer( str ).toString( 'base64' ); } else { _btoa = () => { throw new Error( 'Unsupported environment: `window.btoa` or `Buffer` should be supported.' ); }; } export default _btoa;
Version data entries
3 entries across 3 versions & 1 rubygems