@technobuddha/library
Version:
A large library of useful functions
9 lines (8 loc) • 316 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
* @group String
* @category Operations
*/
export declare function clean(input: string, characters?: string | RegExp | (string | RegExp)[]): string;