min<T extends Comparable<T>> function

T min<T extends Comparable<T>>(
  1. T a,
  2. T b
)

Returns the smaller of two Comparables.

Implementation

T min<T extends Comparable<T>>(T a, T b) => a.compareTo(b) < 0 ? a : b;