Array to string parsing to utils.

This commit is contained in:
codevictory
2021-11-03 17:23:16 +02:00
parent f115032ae3
commit de45e25782
2 changed files with 9 additions and 7 deletions

View File

@@ -1,3 +1,7 @@
export const capFirstLetter = (string: string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
export const capFirstLetter = (str: string) => {
return str.charAt(0).toUpperCase() + str.slice(1);
}
export const arrayToString = (str: string) => {
return str.toString().replaceAll(",", ", ");
}