mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-03 03:11:40 +00:00
Add files
This commit is contained in:
commit
e87c814068
266 changed files with 63938 additions and 0 deletions
5
src/renderer/utils/title-case.ts
Normal file
5
src/renderer/utils/title-case.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export const titleCase = (str: string) => {
|
||||
return str.replace(/\w\S*/g, (txt) => {
|
||||
return txt.charAt(0).toUpperCase() + txt.slice(1).toLowerCase();
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue