3 exports.__esModule = true;
5 * @file to-title-case.js
6 * @module to-title-case
10 * Uppercase the first letter of a string.
12 * @param {string} string
13 * String to be uppercased
16 * The string with an uppercased first letter
18 function toTitleCase(string) {
19 if (typeof string !== 'string') {
23 return string.charAt(0).toUpperCase() + string.slice(1);
26 exports['default'] = toTitleCase;