Private
Readonly
hexStatic
ensureEnsures hexString
is instance of HexString
class
String to check
New HexString if hexString
is regular string or hexString
if it is HexString instance
const regularString = "string";
const hexString = new HexString("string"); // "0xstring"
HexString.ensure(regularString); // "0xstring"
HexString.ensure(hexString); // "0xstring"
Static
fromStatic
from
A util class for working with hex strings. Hex strings are strings that are prefixed with
0x