Function upperFirst

  • It will convert the first character of the string to uppercase.

    Type Parameters

    • Value extends string

    Parameters

    Returns Capitalize<Value>

    Since

    1.0.0

    Example

    upperFirst('fred');
    // => 'Fred'

    Example

    upperFirst('FRED');
    // => 'FRED'

    Example

    upperFirst('frED');
    // => 'FrED'