codetrix - v1.5.0
    Preparing search index...

    Function removeNonAlpha

    • Removes all non-alphabetical characters from a string.

      Parameters

      • str: string

        The string to clean.

      Returns string

      A string with only alphabetic characters.

      removeNonAlpha('Hello123!'); // 'Hello'