UNPKG

@technobuddha/library

Version:
23 lines (22 loc) 834 B
/** * Remove all occurrences of characters from the beginning and end of the string * * @param input The string * @param characters The characters(s) to remove */ export declare function clean(input: string, characters?: (string | RegExp | (string | RegExp)[])): string; /** * Remove all occurrences of characters from the end of the string * * @param input The string * @param characters he characters(s) to remove */ export declare function cleanEnd(input: string, characters?: (string | RegExp | (string | RegExp)[])): string; /** * Remove all occurrences of characters from the start of the string * * @param input The string * @param characters The characters(s) to remove */ export declare function cleanStart(input: string, characters?: (string | RegExp | (string | RegExp)[])): string; export default clean;