Function boolToByte

  • Converts a boolean value to a Uint8Array.

    Parameters

    • val: boolean

      The boolean value to convert.

    Returns Uint8Array

    The converted Uint8Array.