Converts a byte array to a boolean value.
import { bytesToBool } from "thirdweb/utils";const bytes = new Uint8Array([1]);const bool = bytesToBool(bytes);console.log(bool); // true
function bytesToBool( bytes_: Uint8Array, opts: BytesToBoolOpts,): boolean;
The byte array to convert.
let bytes_: Uint8Array;
Optional parameters for the conversion.
let opts: { size?: number };
let returnType: boolean;
The boolean value converted from the byte array.