Uint8ArrayConstructor

interface · experimental

interface Uint8ArrayConstructor

Methods

fromBase64

fromBase64(string: string, options?: { alphabet?: "base64" | "base64url"; lastChunkHandling?: "loose" | "strict" | "stop-before-partial" }): Uint8Array<ArrayBuffer>

Creates a new Uint8Array object from a base64 string.

MDN

fromHex

fromHex(string: string): Uint8Array<ArrayBuffer>

Creates a new Uint8Array object from a hex string.

MDN