dayjs / dayjs-website

⏰Day.js website repo
http://day.js.org/
MIT License
65 stars 228 forks source link

min() and max() return null when invalid arguments provided #121

Open JLa2r opened 1 year ago

JLa2r commented 1 year ago

The min() and max() methods can return null (as a result of the .sortBy()) but this is not mentioned in the documentation. The .d.ts file also only indicates that it will return a Dayjs (not Dayjs | null).