Update formatting
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user