Function assertValidDateMonth

  • Asserts if the provided month is a valid date month.

    Parameters

    • month: number

      The month to be validated. Should be a number between 1 and 12.

    Returns void

    Throws

    Will throw an error if the month is not a valid date month.

    Example

    assertValidDateMonth(13);;
    //=> Error: Invalid month: 13.
    assertValidDateMonth(1);;
    //=> undefined

Generated using TypeDoc