toHex
Callable
Parameters
value: string | number | bigint | boolean | object | Uint8Array
Value to be converted to hex
optionalreturnType: boolean
If true, it will return the type of the value
Returns string
Value to be converted to hex
If true, it will return the type of the value
Auto converts any given value into it's hex representation.