Renamed module function name (spelling weekday as one word)

This commit is contained in:
Alex Tselegidis 2022-01-12 11:18:35 +01:00
parent 098a475442
commit 79c0f2c356

View file

@ -66,14 +66,14 @@ window.App.Utils.Date = (function () {
/** /**
* Get the Id of a Weekday using the US week format and day names (Sunday=0) as used in the JS code of the * Get the Id of a Weekday using the US week format and day names (Sunday=0) as used in the JS code of the
* application, case insensitive, short and long names supported. * application, case-insensitive, short and long names supported.
* *
* @param {String} weekDayName The weekday name among Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, * @param {String} weekDayName The weekday name among Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
* Saturday. * Saturday.
* @return {Number} Returns the ID of the weekday. * @return {Number} Returns the ID of the weekday.
*/ */
function getWeekDayId(weekDayName) { function getWeekdayId(weekDayName) {
let result; let result;
switch (weekDayName.toLowerCase()) { switch (weekDayName.toLowerCase()) {
@ -186,7 +186,7 @@ window.App.Utils.Date = (function () {
return { return {
format, format,
getWeekDayId, getWeekdayId,
sortWeekDictionary, sortWeekDictionary,
getWeekdayName getWeekdayName
}; };