NameUtility class

Provides helper functions for converting names.

Operations

NameReturnsDescription
camelToKebabCase(input)

NameUtility.camelToKebabCase

X

Converts a UpperCamelCase or lowerCamelCase string to a kebab-case (aka dash-case) string.

Parameters
NameTypeDescription
inputstring A camelCase or UpperCamelCase string.
Return value
Type: string 
string Converts a UpperCamelCase or lowerCamelCase string to a kebab-case (aka dash-case) string. 
capitalize(input)

NameUtility.capitalize

X

Makes the first character of the string uppercase.

Parameters
NameTypeDescription
inputstring 
Return value
Type: string 
string Makes the first character of the string uppercase.  
lowerToUpperCamelCase(input)

NameUtility.lowerToUpperCamelCase

X

Converts a lowerCamelCase string to a UpperCamelCase string.

Parameters
NameTypeDescription
inputstring A lowerCamelCase string.
Return value
Type: string 
string Converts a lowerCamelCase string to a UpperCamelCase string. 
unCapitalize(input)

NameUtility.unCapitalize

X

Makes the first character of the string lowercase.

Parameters
NameTypeDescription
inputstring 
Return value
Type: string 
string Makes the first character of the string lowercase.  
upperToLowerCamelCase(input)

NameUtility.upperToLowerCamelCase

X

Converts a UpperCamelCase string to a lowerCamelCase string.

Parameters
NameTypeDescription
inputstring A UpperCamelCase string.
Return value
Type: string 
string Converts a UpperCamelCase string to a lowerCamelCase string.