@technobuddha/library
Version:
A large library of useful functions
23 lines (22 loc) • 834 B
TypeScript
/**
* 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;