Files
Checkmate/Client/src/Utils/stringUtils.js
T

8 lines
291 B
JavaScript
Raw Normal View History

/**
* Helper function to get first letter capitalized string
* @param {string} str String whose first letter is to be capitalized
* @returns A string with first letter capitalized
*/
2024-11-12 09:12:12 -05:00
export const capitalizeFirstLetter = (str) =>{
return str?.charAt(0).toUpperCase() + str.slice(1);
2024-11-12 09:12:12 -05:00
}