1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 14:34:02 +00:00

document util function

This commit is contained in:
Matt Gibson
2024-11-19 12:52:58 -08:00
parent 376d7a88c1
commit 7d6e742625

View File

@@ -64,6 +64,11 @@ export class Utils {
}
}
/**
* Converts a base64 encoded string to a Uint8Array.
* @param str string or nullish to convert
* @returns a Uint8Array or null if str is nullish
*/
static fromB64ToArray(str: string): Uint8Array {
if (str == null) {
return null;