Function titleCase

  • Capitalizes the first letter of every word in the string.

    Returns

    Returns the title cased string.

    Example

    titleCase('lord of the rings')
    // 'Lord Of The Rings'

    See

    capitalize

    Parameters

    • s: string

      The string to capitalize

    Returns string

Generated using TypeDoc