Assorted string utils.
- Source:
Methods
(inner) removeNewLines(str)
- Source:
Removes new lines in a string
Parameters:
Name | Type | Description |
---|---|---|
str |
* | string to remove lines. |
Returns:
the formatted string
(inner) safe(str)
- Source:
Convert a string to a "safe" only letters string.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | String to convert |
Returns:
A-Za-z
(inner) stringToTrimmedArray(str)
- Source:
Converts a multiline text into a string array, trimming each line
Parameters:
Name | Type | Description |
---|---|---|
str |
* |
Returns:
A strimmed array