Function isAlnum

  • Checks if a string contains only alphanumeric characters.

    Returns

    Returns true if the string contains only alphanumeric.

    Example

    isAlnum('alpha1234')
    // true

    isAlnum('oops!')
    // false

    Parameters

    • s: string

      The string

    Returns boolean

Generated using TypeDoc