Validates if the given string contains only alphanumeric characters.
const isValid = await validateAlphanumeric({ str: "abc123" });console.log(isValid);// Output: true Copy
const isValid = await validateAlphanumeric({ str: "abc123" });console.log(isValid);// Output: true
The options containing the string to validate.
true
false
Validates if the given string contains only alphanumeric characters.
Example