Function titleise

  • Capitalises each word in the specified string.

    Parameters

    • words: string

      a string of words to be titleised.

    Returns string

    a copy of words where each word starts with an uppercase character.