最小值
返回给定 Day.js 实例的最小值(最远的过去)。它接受多个参数和包含 Day.js 实例的数组。
¥Returns the minimum (most distant past) of the given Day.js instances. This accepts both multiple arguments and array that contains Day.js instance.
This requires the
MinMax
plugin to work
dayjs.extend(minMax)
dayjs.min(dayjs(), dayjs('2018-01-01'), dayjs('2019-01-01'))
dayjs.min([dayjs(), dayjs('2018-01-01'), dayjs('2019-01-01')])