This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Frontend/src/app/common/string-utils.ts

10 lines
229 B
TypeScript
Raw Normal View History

2024-04-23 03:22:31 +01:00
/**
* Capitalizes the first letter of a string
*
* @param str the string to change
* @returns the updated string
*/
export function capitalizeFirstLetter(str: string) {
return str.charAt(0).toUpperCase() + str.slice(1);
}