uppercase
Converts the input string to uppercase.
uppercase
Converts the input string to uppercase.
Type: transform
Aliases
upper
Parameters
- input (unknown): The input to convert to uppercase. Non-string inputs are converted to JSON string first.
Returns
Type: string
The uppercase string.
Examples
uppercase("hello") // "HELLO"
"hello world"|uppercase // "HELLO WORLD"