* Converts the first character of `string` to upper case and the remaining * to lower case. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to capitalize. * @returns {string} Returns the capitalized string.
(string)
| 14265 | * // => 'Fred' |
| 14266 | */ |
| 14267 | function capitalize(string) { |
| 14268 | return upperFirst(toString(string).toLowerCase()); |
| 14269 | } |
| 14270 | |
| 14271 | /** |
| 14272 | * Deburrs `string` by converting |