@tempots/std
trimCharsRight() function
trimCharsRight
removes from the end of the string any character that is present in charlist
.
Signature:
trimCharsRight: (value: string, charlist: string) => string
Parameters
Parameter |
Type |
Description |
---|---|---|
value |
string |
The string to trim. |
charlist |
string |
The characters to remove from the end of the string. |
Returns: string
The trimmed string.