Returns true if the string contains only alphabetic characters (a–z, A–Z).
true
The string to check.
isAlpha("Hello") // => trueisAlpha("hello123") // => falseisAlpha("") // => false Copy
isAlpha("Hello") // => trueisAlpha("hello123") // => falseisAlpha("") // => false
Returns
trueif the string contains only alphabetic characters (a–z, A–Z).