Skip to main content

toHex

Callable

  • toHex(value: string | number | bigint | boolean | object | Buffer | ArrayBuffer | Uint8Array, returnType?: boolean): string

  • Auto converts any given value into it’s hex representation.


    Parameters

    • value: string | number | bigint | boolean | object | Buffer | ArrayBuffer | Uint8Array
    • optionalreturnType: boolean

    Returns string