mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat: top genres report
This commit is contained in:
parent
62119d44b0
commit
a0c28e2324
21 changed files with 317 additions and 104 deletions
8
frontend/src/util/capitalizeString.ts
Normal file
8
frontend/src/util/capitalizeString.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export const capitalizeString = (str: string): string => {
|
||||
const arr = str.split(" ");
|
||||
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
arr[i] = arr[i].charAt(0).toUpperCase() + arr[i].slice(1);
|
||||
}
|
||||
return arr.join(" ");
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue