MCPcopy
hub / github.com/flatpickr/flatpickr / monthToStr

Function monthToStr

src/utils/formatting.ts:32–36  ·  view source on GitHub ↗
(
  monthNumber: number,
  shorthand: boolean,
  locale: Locale
)

Source from the content-addressed store, hash-verified

30const doNothing = (): undefined => undefined;
31
32export const monthToStr = (
33 monthNumber: number,
34 shorthand: boolean,
35 locale: Locale
36) => locale.months[shorthand ? "shorthand" : "longhand"][monthNumber];
37
38export type RevFormatFn = (
39 date: Date,

Callers 4

buildMonthSwitchFunction · 0.90
buildMonthsFunction · 0.90
formatting.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…