Function assertIsBytes

  • Assert that a value is a Uint8Array.

    Throws

    If the value is not a Uint8Array.

    Parameters

    • value: unknown

      The value to check.

    Returns asserts value is Uint8Array