Function isAlpha

  • Checks if a string contains only alphabetic characters.

    Returns

    Returns true if the string contains only alphabetic.

    Example

    isAlpha('alpha1234')
    // false

    isAlpha('letters')
    // true

    Parameters

    • s: string

      The string

    Returns boolean

Generated using TypeDoc