Docs

bytesToBool

Converts a byte array to a boolean value.

Example

import { bytesToBool } from "thirdweb/utils";
const bytes = new Uint8Array([1]);
const bool = bytesToBool(bytes);
console.log(bool); // true

Parameters

Returns

The boolean value converted from the byte array.