Skip to content

xdash API Reference v0.5.14


xdash API Reference / upperCase

Function: upperCase()

upperCase(str): string

Defined in: src/string.ts:128

Converts a string to upper case

Parameters

str

string

string to convert

Returns

string

the string in upper case

Example

ts
upperCase('foo') // returns 'FOO'
upperCase('FOO') // returns 'FOO'
upperCase('123') // returns '123'
upperCase('') // returns ''
upperCase('foo-bar') // returns 'FOO-BAR'

Released under the MIT License.