Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toUpper.js 592B

12345678910111213141516171819202122232425262728
  1. var toString = require('./toString');
  2. /**
  3. * Converts `string`, as a whole, to upper case just like
  4. * [String#toUpperCase](https://mdn.io/toUpperCase).
  5. *
  6. * @static
  7. * @memberOf _
  8. * @since 4.0.0
  9. * @category String
  10. * @param {string} [string=''] The string to convert.
  11. * @returns {string} Returns the upper cased string.
  12. * @example
  13. *
  14. * _.toUpper('--foo-bar--');
  15. * // => '--FOO-BAR--'
  16. *
  17. * _.toUpper('fooBar');
  18. * // => 'FOOBAR'
  19. *
  20. * _.toUpper('__foo_bar__');
  21. * // => '__FOO_BAR__'
  22. */
  23. function toUpper(value) {
  24. return toString(value).toUpperCase();
  25. }
  26. module.exports = toUpper;