codec-utils v0.3.4isValidHexOn this pageisValidHex export function isValidHex(s: string): boolean Checks if all characters of a string are in the base16 charset, and if the length of the string is even. Arguments 1. s s: string Returns boolean