toUpperCase
Description
Converts all alphabetical characters in a string to uppercase.
Syntax
Like many functions in DataPrime, toUpperCase
supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
value | string | true | The string to transform to uppercase |
Example
Normalize UUIDs for comparison
Consider the following document:
{
"uuid1": "37367559-35f4-459c-943e-19025765da15",
"uuid2": "37367559-35F4-459C-943E-19025765DA15"
}
A direct comparison would fail due to differing cases. Use toUpperCase
to normalize them:
Output
{
"uuid1": "37367559-35f4-459c-943e-19025765da15",
"uuid2": "37367559-35F4-459C-943E-19025765DA15"
}
Theme
Light