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