upperCase es-toolkit
Converts a string to a format where all letters are uppercase and words are separated by spaces.
Usage
upperCase(str)
Use upperCase when you want to convert a string to uppercase notation. It converts each word to uppercase and connects words with spaces. It can handle strings in various notations like camelCase, kebab-case, snake_case, etc.
Useful when converting various naming conventions to a unified uppercase format:
Parameters
strstringrequired
The string to convert to uppercase notation.
Returns
Returns a string with each word converted to uppercase and separated by spaces.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.