4.17.11
3.10.1
2.4.2
1.3.1

_.toUpper([string=''])

Converts string, as a whole, to upper case just like String#toUpperCase.

Since

4.0.0

Arguments

argument
[string='']
type
string
description
The string to convert.

Returns

(array)

Example

_.toUpper("--foo-bar--");
// => '--FOO-BAR--'

_.toUpper("fooBar");
// => 'FOOBAR'

_.toUpper("__foo_bar__");
// => '__FOO_BAR__'
_.toUpper("--foo-bar--");
// => '--FOO-BAR--'

_.toUpper("fooBar");
// => 'FOOBAR'

_.toUpper("__foo_bar__");
// => '__FOO_BAR__'