upperCase
Import from @varavel/vdl-plugin-sdk/utils/strings.
Converts a string to uppercase words separated by spaces.
The input is normalized with words, then each token is uppercased and
joined using a single space. This is useful for readable labels, headings,
or enum-like display values derived from mixed naming conventions.
Empty or separator-only inputs return an empty string.
Parameters
| Parameter | Type | Description |
|---|---|---|
str |
string |
String to normalize. |
Returns
string
The uppercased space-separated representation of str.