Function upperCase

  • Converts string, as space separated words, to upper case.

    Parameters

    • str: string

      The string to convert.

    Returns string

    Returns the upper cased string.

    5.13.0

    [[camelCase]], [[kebabCase]], [[lowerCase]], [[snakeCase]], [[startCase]], [[upperFirst]]

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

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

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