Docs

hexToBool

Converts a hexadecimal string to a boolean value.

Example

import { hexToBool } from "thirdweb/utils";
const bool = hexToBool("0x01");
console.log(bool); // true

Parameters

Returns

The boolean value corresponding to the hexadecimal string.