Function getCapitalizedString

  • Function that will captialize first letter of each word in a string

    Example

    To format string: hi i am john doe.
    capitalizeString('hi i am john doe.')
    returns Hi I Am John Doe

    Returns

    Parameters

    • str: string

      String that has to be formatted

    Returns string

Generated using TypeDoc