From d336735a91133cc3f1cf6f67ba2ac29f0985fd2e Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 2 Mar 2023 16:51:05 +0700 Subject: delete src2 --- src2/core/utils/toTitleCase.js | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 src2/core/utils/toTitleCase.js (limited to 'src2/core/utils/toTitleCase.js') diff --git a/src2/core/utils/toTitleCase.js b/src2/core/utils/toTitleCase.js deleted file mode 100644 index 5cfd70d0..00000000 --- a/src2/core/utils/toTitleCase.js +++ /dev/null @@ -1,8 +0,0 @@ -export default function toTitleCase(str) { - return str.replace( - /\w\S*/g, - function(txt) { - return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); - } - ); -} \ No newline at end of file -- cgit v1.2.3