MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / isHourValid

Function isHourValid

packages/core/ui/time-picker/time-picker-common.ts:39–41  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

37}
38
39function isHourValid(value: number): boolean {
40 return typeof value === 'number' && value >= 0 && value <= 23;
41}
42
43function isMinuteValid(value: number): boolean {
44 return typeof value === 'number' && value >= 0 && value <= 59;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected