Array to string parsing to utils.
This commit is contained in:
@@ -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(",", ", ");
|
||||
}
|
||||
Reference in New Issue
Block a user