Asserts that the provided number is a valid minute value (between 0 and 59). If the number is not valid, it throws an error.
The number to be validated.
Will throw an error if the number is not a valid minute value.
assertValidMinutes(30); // No errorassertValidMinutes(60); // Throws Error: 'Expected minutes to be between 0 and 59. Got: 60' Copy
assertValidMinutes(30); // No errorassertValidMinutes(60); // Throws Error: 'Expected minutes to be between 0 and 59. Got: 60'
Generated using TypeDoc
Asserts that the provided number is a valid minute value (between 0 and 59). If the number is not valid, it throws an error.