Skip to content

isValidFiscalExtraWeek

  • The core functions, which every industry uses.
isValidFiscalExtraWeek(value: unknown): value is FiscalExtraWeek

Return true when value is a valid FiscalExtraWeek: the period a 53rd week is added to.

  • Valid values are "firstPeriod" and "lastPeriod". The ONS retail trading periods (UK) add a five-week January; the NRF 4-5-4 calendar (US) adds the week to the end.
  • Accepts any input type and returns false for non-string values.
  • Use it to narrow a value read from config, an env var or a form before building a FiscalCalendar.
ParameterTypeDescription
valueunknowncandidate value of any type

boolean indicating validity

import { isValidFiscalExtraWeek } from "@northguild/gmt/calendar/validate";
isValidFiscalExtraWeek("firstPeriod") // true
output 

calendar/validate/isValidFiscalExtraWeek.ts

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.