Function: capitalize()

capitalize<T>(target): Capitalize<T>

Capitalizes the first letter of a string.

Type Parameters

T

T extends string

Parameters

target

T

The string to be capitalized.

Returns

Capitalize<T>

  • The capitalized string.