Function capitalizeL

Capitalizes the first letter of a string.

capitalize

let a = capitalizeW('foo'); // a has type string
a = 'bar'; // OK
  • Parameters

    • x: string

      The string to capitalize.

    Returns string

    The capitalized string with a wide string type.