From a6971d6c84ad54b7c15d9bbd6ddce2fd9591c4b2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 11 Jan 2022 10:51:10 +0100 Subject: [PATCH] Create new string util script. --- assets/js/utils/string.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 assets/js/utils/string.js diff --git a/assets/js/utils/string.js b/assets/js/utils/string.js new file mode 100644 index 00000000..1ab435db --- /dev/null +++ b/assets/js/utils/string.js @@ -0,0 +1,20 @@ +/* ---------------------------------------------------------------------------- + * Easy!Appointments - Open Source Web Scheduler + * + * @package EasyAppointments + * @author A.Tselegidis + * @copyright Copyright (c) Alex Tselegidis + * @license https://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link https://easyappointments.org + * @since v1.5.0 + * ---------------------------------------------------------------------------- */ + +window.App.Utils.String = (function () { + function upperCaseFirstLetter(value) { + return value.charAt(0).toUpperCase() + value.slice(1); + } + + return { + upperCaseFirstLetter + }; +})();