Function titleize

  • Return text with all word first letter to uppercase

    Parameters

    • text: string

    Returns string

    Example

    // returns 'Lorem Ipsum Dolor Sit'
    titleize('lorem ipsum dolor sit')