Function getFirstWordCapitalized

  • Returns the first word of a string capitalized.

    Parameters

    • str: string

      The input string.

    Returns string

    The first word of the input string, with the first letter capitalized and the rest in lowercase.

    Throws

    If an error occurs during the process.

Generated using TypeDoc