TypeScript String trim()
Syntax & Examples
Syntax of String.trim()
The syntax of String.trim() method is:
trim(): string
This trim() method of String removes the leading and trailing white space and line terminator characters from a string.