Back to Strings
trim
Remove leading and trailing whitespace.
Syntax
trim(s) → Trimmed string
Backends
TypeScript
Description
Remove leading and trailing whitespace.
Parameters
| Name | Description |
|---|---|
| s | Input string |
Returns
Trimmed string