Massive bug fix. Clear button added into fields.
This commit is contained in:
5
utils/text.ts
Normal file
5
utils/text.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const toTitleCase = (str: string): string => {
|
||||
return str.replace(/\w\S*/g, (txt) => {
|
||||
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user