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 | SerializedTheTime>
>(input: GenericInput): TheTime

Parameters ​

  • input: Tuple of TheTime or SerializedTheTime values.

Return value ​

The maximum duration of the tuple, as a TheTime.

See also ​

Released under the MIT license.