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