Function upperFirst

  • Converts the first character of string to upper case.

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 2,412 bytes
    • Micro-dash: 100 bytes

    Parameters

    • string: string | Nil

    Returns string