apps-script-utils 2.1.1 Help

toUpperCase

function toUpperCase(value: string, options: ToUpperCaseOptions = {}): string;

The counterpart of toLowerCase, with the same validation and the same optional trim.

Parameters

Parameter

Type

Description

value

string

The string to convert. It must not be empty.

options (optional) = {}

ToUpperCaseOptions

trim trims the string and collapses runs of whitespace into single spaces.

Returns

string — the upper-cased string.

Throws

Exception

Condition

EmptyStringException

the value is not a string, or is empty.

Examples

Converting

toUpperCase("Hello"); // => "HELLO"

See also

Source

src/lang/string/toUpperCase.ts

23 September 2026

This documentation was generated with AI (Claude) from the library's source code.