• Tests whether if the string contains only letters valid for the locale. For the US his would be (a-zA-Z).

    Example

    expect(isAlpha('hello').value).toBeTruthy()
    

    Parameters

    • target: string

      The target string

    • locale: string = 'en-US'

      The locale argument, defaults to 'en-US'

    Returns Result<boolean | undefined>

Generated using TypeDoc