b78768df25efce25f3bac8a39966b4a612db984a725431436d65212279ba8ec752ba88638349e60102e0f44ea85b648ffc873a82c3a4812754f5c8a985315d 468 B

12345678910111213141516171819202122
  1. import createCaseFirst from './_createCaseFirst.js';
  2. /**
  3. * Converts the first character of `string` to upper case.
  4. *
  5. * @static
  6. * @memberOf _
  7. * @since 4.0.0
  8. * @category String
  9. * @param {string} [string=''] The string to convert.
  10. * @returns {string} Returns the converted string.
  11. * @example
  12. *
  13. * _.upperFirst('fred');
  14. * // => 'Fred'
  15. *
  16. * _.upperFirst('FRED');
  17. * // => 'FRED'
  18. */
  19. var upperFirst = createCaseFirst('toUpperCase');
  20. export default upperFirst;