Function assertValidMilliseconds

  • Asserts that the provided number is a valid millisecond 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 millisecond value (i.e., between 0 and 999).

    Throws

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

    Example

    assertValidMilliseconds(500); // No error
    assertValidMilliseconds(1000); // Throws error

Generated using TypeDoc