convert an array of integer numbers to hex-string, for the sake of easing representation, or for visual purposes.
to customize the apearance of the hex-string, or to use a different radix, use the HexStringReprConfig interface to change the default options.
you must make sure that every element of your array arr is non-negative, in addition to being less than options.radix ** 2.
since the default options.radix === 16, each of your number must be smaller than 256 on the default config.
to invert the operation of this function (i.e. parse an array of integers from a string), use the hexStringToArray function with the same config options.
convert an array of integer numbers to hex-string, for the sake of easing representation, or for visual purposes.
to customize the apearance of the hex-string, or to use a different radix, use the HexStringReprConfig interface to change the default
options
.you must make sure that every element of your array
arr
is non-negative, in addition to being less thanoptions.radix ** 2
. since the defaultoptions.radix === 16
, each of your number must be smaller than256
on the default config.to invert the operation of this function (i.e. parse an array of integers from a string), use the hexStringToArray function with the same config
options
.Example