• Format a string to title case.

    Parameters

    • string: string

      The string to format

    Returns string

    The formatted string

    Example

    titleCase("hello_world") // "Hello world"