Function capitalizeFirstLetter

  • Function that will capitalize first letter of each sentence in a string.

    Example

    To format string: hi i am john doe. i am a developer.'
    capitalizeFirstLetter('hi i am john doe. i am a developer.')
    returns Hi i am john doe. I am a developer.

    Returns

    Formatted String

    Parameters

    • str: string

      String that has to be formatted

    Returns string

Generated using TypeDoc