hexFix()

Remove the '0x' from hexadecimal numbers

Method signature

function hexFix(word)

Parameters

NameTypeDescription

word

string

Any hex string from which you want to remove the '0x'

Example

var hex = "0x48656c6c6f2c20576f726c6421";

var hexString = CircularProtocolAPI.hexFix(hex);

Result

The result will be an object of type String:

48656c6c6f2c20576f726c6421

Last updated