Skip to main content

capfirst

Capitalize the first character of the value.

def capfirst(
value: string
) - > string

Capitalize the first character of the value.

Parameters

NameTypeDescription
valuestringThe string value whose first character will be capitalized

Returns

TypeDescription
stringThe input string with its first character converted to uppercase, or the original value if it is empty or null