MCPcopy
hub / github.com/formatjs/formatjs / isDateFormatOnly

Function isDateFormatOnly

packages/intl-datetimeformat/scripts/extract-dates.ts:39–48  ·  view source on GitHub ↗
(opts: Intl.DateTimeFormatOptions)

Source from the content-addressed store, hash-verified

37)
38
39function isDateFormatOnly(opts: Intl.DateTimeFormatOptions) {
40 return !Object.keys(opts).find(
41 k =>
42 k === 'hour' ||
43 k === 'minute' ||
44 k === 'second' ||
45 k === 'timeZoneName' ||
46 k === 'hour12'
47 )
48}
49
50function isTimeFormatOnly(opts: Intl.DateTimeFormatOptions) {
51 return !Object.keys(opts).find(

Callers 1

loadDatesFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected