Remove Whitespace
Removes all whitespace from a string.
Category | Strings |
Author | Pol Gubau |
Since | 1.0.0 |
Last Updated | 2025-03-15 |
Type | Sync |
Compatibility | Universal |
Example
Input
removeWhitespace(' hello world ')
Output:
'helloworld'
Return
Returns the string without any whitespace.
Type: string
Props
Name | Type | Default | Required | Description |
---|---|---|---|---|
str | string | null | Yes | The string to remove whitespace from. |
Notes
This function removes all types of whitespace characters (spaces, tabs, etc.) from the string.
Tags
- string
- whitespace
- removal