Skip to content

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 ​

javascript
uppercase("hello") // "HELLO"
javascript
"hello world"|uppercase // "HELLO WORLD"

Released under the MIT License.