Skip to content

max

The max() function returns the most recent date of a tuple of TheDate.

Interactive example

Syntax

typescript
function max<
  GenericInput extends AnyTuple<TheDate>
>(input: GenericInput): TheDate

Parameters

  • input: Tuple of dates in TheDate format.

Return value

The maximum date of the tuple, as a TheDate.

See also

  • min - Returns the minimum date
  • sort - Sorts an array of dates

Released under the MIT license.