@technobuddha > library > String > Operations
Function: clean()
ts
function clean(input: string, characters:
| string
| RegExp
| (
| string
| RegExp)[]): string;Defined in: clean.ts:14
Remove all occurrences of characters from the beginning and end of the string
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
input | string | undefined | The string |
characters | | string | RegExp | ( | string | RegExp)[] | trimEquivalent | The characters(s) to remove |
Returns
string