toSingleSpaceForList
Modified on Fri, 18 Aug 2023
Description
Convert multiple spaces to a single space for each string in a list
Syntax
toSingleSpaceForList(array)
Parameters
Input Parameter | Type | Description |
---|---|---|
array | Array | String list to process |
Return value
Type |
---|
Array<any> |
Sample
Example | Result | Description |
---|---|---|
toSingleSpaceForList(["Invoice Number 1234", "John Smith"]) | ["Invoice Number 1234", "John Smith"] | Remove extra spaces for a list of strings |
To view all the List functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article