Validates a value to ensure it is or can be converted to a non-empty Uint8Array.
This function handles three types of input:
Uint8Array
The unknown value to validate.
A valid, non-empty Uint8Array if the conversion is successful, otherwise undefined.
undefined
Validates a value to ensure it is or can be converted to a non-empty Uint8Array.
This function handles three types of input:
Uint8Array.