Function firstLetterUppercase

  • Transforms the first letter of the given string to uppercase while leaving the rest of the string unchanged.

    Parameters

    • text: string

      The input string to be processed.

    Returns string

    The transformed string with the first letter in uppercase. Returns an empty string if the input is invalid or empty.