Skip to content

maxTime

The maxTime() function returns the largest duration of a tuple of TheTime.

Interactive example

Syntax

typescript
function maxTime<
  GenericInput extends AnyTuple<TheTime>
>(input: GenericInput): TheTime

Parameters

  • input: Tuple of durations in TheTime format.

Return value

The maximum duration of the tuple, as a TheTime.

See also

Released under the MIT license.