function monthsAround
monthsAround(
month: string,
yearsEitherSide: number,
): string[]

List every YYYY-MM month within yearsEitherSide years of the given month's year, in ascending order. e.g. monthsAround("2026-03", 5) runs from "2021-01" to "2031-12". Used to populate the calendar's month picker.

Parameters

month: string
yearsEitherSide: number

Return Type

string[]

Usage

import { monthsAround } from "docs/listings.ts";