function decode(b64) {
  const binString = atob(b64);
  const size = binString.length;
  const bytes = new Uint8Array(size);
  for (let i = 0; i < size; i++) {
    bytes[i] = binString.charCodeAt(i);
  }
  return bytes;
}
/**
 * Decodes a given RFC4648 base64 encoded string
 * @param b64
 */
Decodes a given RFC4648 base64 encoded string
@param b64
Decodes a given RFC4648 base64 encoded string @param b64
function decode(b64) {
  const binString = atob(b64);
  const size = binString.length;
  const bytes = new Uint8Array(size);
  for (let i = 0; i < size; i++) {
    bytes[i] = binString.charCodeAt(i);
  }
  return bytes;
}
function decode ( b64 ) { const binString = atob ( b64 ) ; const size = binString . length ; const bytes = new Uint8Array ( size ) ; for ( let i = 0 ; i < size ; i ++ ) { bytes [ i ] = binString . charCodeAt ( i ) ; } return bytes ; }
Decodes a given RFC4648 base64 encoded string
 @param b64
Decodes a given RFC4648 base64 encoded string @param b64