Converts a camelCase string to a human-readable format with spaces between words.
Parameters
strInput: string|null|undefined
The camelCase string to convert. A nullish/empty value returns an empty string.
Returns string
The string converted to pretty case, with spaces between words and the first letter capitalized.
Example
camelToPrettyCase('camelCaseString'); // Returns "Camel Case String" camelToPrettyCase('OSVersion'); // Returns "OS Version" — an acronym stays one word
Converts a camelCase string to a human-readable format with spaces between words.