|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
592 bytes
|
| Line | |
|---|
| 1 | var toString = require('./toString');
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Converts `string`, as a whole, to upper case just like
|
|---|
| 5 | * [String#toUpperCase](https://mdn.io/toUpperCase).
|
|---|
| 6 | *
|
|---|
| 7 | * @static
|
|---|
| 8 | * @memberOf _
|
|---|
| 9 | * @since 4.0.0
|
|---|
| 10 | * @category String
|
|---|
| 11 | * @param {string} [string=''] The string to convert.
|
|---|
| 12 | * @returns {string} Returns the upper cased string.
|
|---|
| 13 | * @example
|
|---|
| 14 | *
|
|---|
| 15 | * _.toUpper('--foo-bar--');
|
|---|
| 16 | * // => '--FOO-BAR--'
|
|---|
| 17 | *
|
|---|
| 18 | * _.toUpper('fooBar');
|
|---|
| 19 | * // => 'FOOBAR'
|
|---|
| 20 | *
|
|---|
| 21 | * _.toUpper('__foo_bar__');
|
|---|
| 22 | * // => '__FOO_BAR__'
|
|---|
| 23 | */
|
|---|
| 24 | function toUpper(value) {
|
|---|
| 25 | return toString(value).toUpperCase();
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | module.exports = toUpper;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.