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 | SerializedTheDate>
>(input: GenericInput): TheDate

Parameters ​

  • input: Tuple of TheDate or SerializedTheDate values.

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.