mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-01 04:12:22 +03:00
Create new string util script.
This commit is contained in:
parent
d1bf0ec89d
commit
a6971d6c84
1 changed files with 20 additions and 0 deletions
20
assets/js/utils/string.js
Normal file
20
assets/js/utils/string.js
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/* ----------------------------------------------------------------------------
|
||||||
|
* Easy!Appointments - Open Source Web Scheduler
|
||||||
|
*
|
||||||
|
* @package EasyAppointments
|
||||||
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||||
|
* @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
|
||||||
|
};
|
||||||
|
})();
|
Loading…
Reference in a new issue