Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/upperFirst

Index

References

Functions

References

Renames and re-exports upperFirst

Functions

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

    example
     upperFirst('foo');  //=> 'Foo'
    upperFirst('über'); //=> 'Über'
    upperFirst('FOO'); //=> 'FOO'

    Parameters

    • str: string

      The string to convert.

    Returns string

    The converted string.

Generated using TypeDoc