Skip to content

isTime

The isTime() function checks whether a value is an instance of TheTime.

Interactive example

Syntax

typescript
function isTime(input: unknown): input is TheTime

Parameters

  • input: Value to test.

Return value

true if the value is an instance of TheTime, otherwise false.

See also

  • createTime - Builds a TheTime from native values
  • is - Checks whether a value is a TheDate

Released under the MIT license.