Options
All
  • Public
  • Public/Protected
  • All
Menu

Module upperFirst

Index

References

Functions String

References

Renames and re-exports upperFirst

String Functions

  • upperFirst(str?: string): string
  • Converts the first character of string to upper case.

    since

    5.5.1

    see

    camelCase, kebabCase, lowerCase, snakeCase, startCase, upperCase

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

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

    Parameters

    • str: string = ""

      The string to convert.

    Returns string

    Returns the converted string.