Function assertValidMinutes

  • Asserts that the provided number is a valid minute value (between 0 and 59). If the number is not valid, it throws an error.

    Parameters

    • n: number

      The number to be validated.

    Returns void

    Throws

    Will throw an error if the number is not a valid minute value.

    Example

    assertValidMinutes(30); // No error
    assertValidMinutes(60); // Throws Error: 'Expected minutes to be between 0 and 59. Got: 60'

Generated using TypeDoc