2022-01-11 12:51:10 +03:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* 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
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
2022-01-14 11:26:44 +03:00
|
|
|
/**
|
|
|
|
* Strings utility.
|
|
|
|
*
|
|
|
|
* This module implements the functionality of strings.
|
|
|
|
*/
|
2022-01-11 12:51:10 +03:00
|
|
|
window.App.Utils.String = (function () {
|
2022-01-14 11:26:44 +03:00
|
|
|
/**
|
|
|
|
* Upper case the first letter of the provided string.
|
|
|
|
*
|
|
|
|
* @param {String} value
|
|
|
|
*
|
|
|
|
* @returns {string}
|
|
|
|
*/
|
2022-01-11 12:51:10 +03:00
|
|
|
function upperCaseFirstLetter(value) {
|
|
|
|
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
|
|
upperCaseFirstLetter
|
|
|
|
};
|
|
|
|
})();
|