“Anything” to Hexadecimal string


Robust utility function for producing hex number string.

This will take anything and return “0x” prefixed hex number in a string, or just undefined, on any mischief attempted.

Enjoy …