Skip to content

isSafeTimeValue

The isSafeTimeValue() function checks that a time value is a safe integer strictly between minTimeValue and maxTimeValue.

Interactive example

Syntax

typescript
function isSafeTimeValue(
	input: number
): boolean

Parameters

  • input: Numeric value to validate.

Return value

true if the value is a safe integer within bounds, otherwise false.

See also

Released under the MIT license.