Converts an array of bytes to a string using UTF-8 encoding.
import { bytesToString } from "thirdweb/utils";const bytes = new Uint8Array([72, 101, 108, 108, 111]);const string = bytesToString(bytes);console.log(string); // "Hello"
function bytesToString(bytes_: Uint8Array, opts: Options): string;
The array of bytes to convert.
let bytes_: Uint8Array;
Optional parameters for the conversion.
let opts: Options;
let returnType: string;
The resulting string.