UNPKG

codetrix

Version:

A lightweight lodash-style utility library

11 lines (10 loc) 279 B
/** * Removes all non-alphabetical characters from a string. * * @param str - The string to clean. * @returns A string with only alphabetic characters. * * @example * removeNonAlpha('Hello123!'); // 'Hello' */ export declare function removeNonAlpha(str: string): string;