Trims the specified pattern from the start and end of the string.
This method is like String.prototype.trim(), but allows specifying a custom pattern.
String.prototype.trim()
The string to be trimmed.
Optional
The pattern to be trimmed. If not provided, whitespace and line terminators are trimmed.
The trimmed string.
Trims the specified pattern from the start and end of the string.
This method is like
String.prototype.trim()
, but allows specifying a custom pattern.