Function assertValidSeconds

  • Asserts whether the provided number is a valid second value.

    Parameters

    • n: number

      The number to be validated.

    Returns void

    Remarks

    This function throws an error if the provided number is not a valid second value (i.e., between 0 and 59).

    Throws

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

    Example

    assertValidSeconds(30); // No error
    assertValidSeconds(60); // Throws error

Generated using TypeDoc