Removes trailing whitespace or specified characters from string.
string
Optional
The string to trim.
The characters to trim.
Returns the trimmed string.
4.0.0
trim, trimStart
trimEnd(' abc ')// => ' abc'trimEnd('-_-abc-_-', '_-')// => '-_-abc' Copy
trimEnd(' abc ')// => ' abc'trimEnd('-_-abc-_-', '_-')// => '-_-abc'
Removes trailing whitespace or specified characters from
string
.