Function lowerFirst

  • Converts the first character of string to lower case.

    Parameters

    • str: string

      The string that is to be changed

    Returns string

    • The converted string.
    const convertedStr1 = lowerCase('fred') // returns 'fred'
    const convertedStr2 = lowerCase('Fred') // returns 'fred'
    const convertedStr3 = lowerCase('FRED') // returns 'fRED'