Options
All
  • Public
  • Public/Protected
  • All
Menu

Module upperCase

Index

References

Functions String

References

Renames and re-exports upperCase

String Functions

  • upperCase(str: string): string
  • Converts string, as space separated words, to upper case.

    since

    5.13.0

    see

    camelCase, kebabCase, lowerCase, snakeCase, startCase, upperFirst

    example
    upperCase('--foo-bar')
    // => 'FOO BAR'

    upperCase('fooBar')
    // => 'FOO BAR'

    upperCase('__foo_bar__')
    // => 'FOO BAR'

    Parameters

    • str: string

      The string to convert.

    Returns string

    Returns the upper cased string.