toUpper

String
since 4.0.0

Arguments

  • string The string to convert.

Returns

string the upper cased string.

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

Example of Lodash _.toUpper

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

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

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