This commit is contained in:
9
src/app/common/string-utils.ts
Normal file
9
src/app/common/string-utils.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* 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);
|
||||
}
|
Reference in New Issue
Block a user