@tempots/std

isAlpha() function

Checks if s contains only (and at least one) alphabetical characters.

Signature:

isAlpha: (s: string) => boolean

Parameters

Parameter

Type

Description

s

string

The string to check.

Returns: boolean

true if the string contains only alphabetical characters, false otherwise.