update final log

This commit is contained in:
2023-12-12 14:35:12 +07:00
parent 91b7a10f86
commit e76c480ce9
59 changed files with 5524 additions and 583 deletions

View File

@@ -35,3 +35,9 @@ export function fPostFormat(date: Date | string | number) {
export function fDateOnly(date: Date | string | number) {
return format(new Date(date), 'yyyy-MM-dd');
}
export function toTitleCase(str: string | null) {
return str.replace(/\w\S*/g, function(txt) {
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
});
}