Converts a number or array of numbers into a contiguous hexadecimal string. Flattens nested arrays and filters out non-integers.
The number(s) to convert
Optional
Optional maximum length of the resulting string
The hexadecimal string representation
toHex([255, 16]); // 'ff10' Copy
toHex([255, 16]); // 'ff10'
Converts a number or array of numbers into a contiguous hexadecimal string. Flattens nested arrays and filters out non-integers.