The number to be checked.
A boolean indicating whether the number is a valid hour or not.
This function checks if the given number is an integer and falls within the range of 0 to 23 (inclusive).
isValidHours(12); // returns true
isValidHours(24); // returns false
isValidHours(15.5); // returns false
Generated using TypeDoc
Checks if the given number is a valid hour in the 24-hour format.