We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd6e1f6 commit 375b08cCopy full SHA for 375b08c
src/date_utils.js
@@ -336,9 +336,7 @@ export function getLocaleObject(localeSpec) {
336
}
337
338
export function getFormattedWeekdayInLocale(date, formatFunc, locale) {
339
- return typeof formatFunc === "function"
340
- ? formatFunc(date, locale)
341
- : formatDate(date, "EEEE", locale);
+ return formatFunc(formatDate(date, "EEEE", locale));
342
343
344
export function getWeekdayMinInLocale(date, locale) {
0 commit comments