Function titleise

  • Capitalises each word in the specified string, also treating underscore separated and camel case strings as a series of words.

    Parameters

    • words: string

      a string of words to be titleised.

    Returns string

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