Splits a camelCase string into words separated by a single space.
This function takes a camelCase string and inserts a space before each uppercase letter sequence
and each uppercase letter followed by a lowercase letter. It then cleans up any double spaces
and removes leading whitespace.
Parameters
camelCaseStr: string
The camelCase string to be split.
Returns string
A new string with words separated by a single space.
Splits a camelCase string into words separated by a single space.
This function takes a camelCase string and inserts a space before each uppercase letter sequence and each uppercase letter followed by a lowercase letter. It then cleans up any double spaces and removes leading whitespace.