Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 12:01:08 +02:00
parent 48790982c1
commit e9019d4c20
11 changed files with 12 additions and 12 deletions

View File

@ -8,7 +8,7 @@ lastUpdated: 2020-10-21T21:54:53+03:00
Returns the minimum of the given dates.
- Use the ES6 spread syntax with `Math.min()` to find the minimum date value.
- Use `new Date()` to convert it to a `Date` object.
- Use the `Date` constructor to convert it to a `Date` object.
```js
const minDate = (...dates) => new Date(Math.min(...dates));