CBA_fnc_removeWhitespace

Description

Removes whitespace (space, tab, newline) from string.

Parameters

_stringAny String STRING
_seperateSeperate leftovers with spaces?  (optional, default: false) <BOOLEAN>

Returns

String without whitespace STRING

Example

" foo  bar   " call CBA_fnc_removeWhitespace;
// "foobar"

[" foo  bar   ", true] call CBA_fnc_removeWhitespace;
// "foo bar"

Author

commy2

string used by format
Close