# isValidFiscalExtraWeek

Industry: Core

## Signature

```ts
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`.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` | candidate value of any type |

## Returns

boolean indicating validity

## Related types

- [`FiscalExtraWeek`](/gmt/reference/types/FiscalExtraWeek/)

## Examples

```ts
import { isValidFiscalExtraWeek } from "@northguild/gmt/calendar/validate";

isValidFiscalExtraWeek("firstPeriod") // true
```

## Source

[calendar/validate/isValidFiscalExtraWeek.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/calendar/validate/isValidFiscalExtraWeek.ts)
