Function capitalize

  • Converts the first character of the given string to upper case and the rest to lower case.

    Returns

    Returns the capitalized string.

    Example

    capitalize('TEST')
    // 'Test'

    See

    titleCase

    Parameters

    • s: string

      The string to capitalize

    Returns string

Generated using TypeDoc