min<T extends num> static method

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

两个值中取最小值

a 第一个值 b 第二个值

返回较小的值

Implementation

static T min<T extends num>(T a, T b) {
  return a < b ? a : b;
}