Function: isHexadecimal() ​
isHexadecimal(
str):boolean
Defined in: index.ts:54
Validates if a string contains only hexadecimal characters. Used for validating Appwrite user IDs and session tokens.
Parameters ​
str ​
string
The string to validate
Returns ​
boolean
True if the string contains only hex characters, false otherwise
Example ​
typescript
isHexadecimal('abc123'); // true
isHexadecimal('xyz'); // false