-
Notifications
You must be signed in to change notification settings - Fork 1
string_trim
Hyomoto edited this page Jun 13, 2021
·
6 revisions
Jump To | Go Back |
Arguments |
---|
Returns: string
Throws: InvalidArgumentType
Trims unwanted characters from the left and right sides of the string. If chars is not specified tabs and spaces(whitespace) will be removed. If string or chars is not a string, InvalidArgumentType will be thrown.
string_trim( " Hello World! " );
Output: "Hello World!"
Name | Type | Purpose |
---|---|---|
string | string |
The string to trim |
*chars | string |
optional: The characters to trim |
Devon Mullane 2020