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.

toLower.js 592B

12345678910111213141516171819202122232425262728
  1. var toString = require('./toString');
  2. /**
  3. * Converts `string`, as a whole, to lower case just like
  4. * [String#toLowerCase](https://mdn.io/toLowerCase).
  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 lower cased string.
  12. * @example
  13. *
  14. * _.toLower('--Foo-Bar--');
  15. * // => '--foo-bar--'
  16. *
  17. * _.toLower('fooBar');
  18. * // => 'foobar'
  19. *
  20. * _.toLower('__FOO_BAR__');
  21. * // => '__foo_bar__'
  22. */
  23. function toLower(value) {
  24. return toString(value).toLowerCase();
  25. }
  26. module.exports = toLower;