Function toUpperCase

  • Converts the first character of a string to upper case.

    Parameters

    • str: string

      The input string.

    Returns string

    The input string with the first character in upper case.

    Example

    const inputString = 'hello';
    const upperCaseString = await toUpperCase(inputString);
    console.log(upperCaseString); // "Hello"

Generated using TypeDoc