Function isAlpha

  • Returns a boolean value denoting whether the input string contains only alphabetical characters

    Example

    Returns true

    isAlpha("foo");
    

    Example

    Returns false

    isAlpha("foo123");
    

    Parameters

    • str: string

    Returns boolean

Generated using TypeDoc