Skip to content

min

The min() function returns the oldest date of a tuple of TheDate.

Interactive example

Syntax

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

Parameters

  • input: Tuple of dates in TheDate format.

Return value

The minimum date of the tuple, as a TheDate.

See also

  • max - Returns the maximum date
  • sort - Sorts an array of dates

Released under the MIT license.