We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310524d commit 60acb02Copy full SHA for 60acb02
js/utils/utils.js
@@ -562,12 +562,12 @@ let fileBasename = file => {
562
* @param {string} str - The input string.
563
* @returns {string} The string with the first character in uppercase.
564
*/
565
-function toTitleCase (str) {
+function toTitleCase(str) {
566
if (typeof str !== "string") return;
567
let tempStr = "";
568
if (str.length > 1) tempStr = str.substring(1);
569
return str.toUpperCase()[0] + tempStr;
570
-};
+}
571
572
if (typeof module !== "undefined" && module.exports) {
573
module.exports.toTitleCase = toTitleCase;
0 commit comments