Travis build: 391

This commit is contained in:
Travis CI
2017-12-28 08:30:19 +00:00
parent 294a22ea5e
commit 203edf9ba2
141 changed files with 1389 additions and 1044 deletions

View File

@ -5,9 +5,10 @@ Returns the difference (in days) between two dates.
Calculate the difference (in days) between two `Date` objects.
```js
const getDaysDiffBetweenDates = (dateInitial, dateFinal) => (dateFinal - dateInitial) / (1000 * 3600 * 24);
const getDaysDiffBetweenDates = (dateInitial, dateFinal) =>
(dateFinal - dateInitial) / (1000 * 3600 * 24);
```
```js
getDaysDiffBetweenDates(new Date("2017-12-13"), new Date("2017-12-22")) // 9
getDaysDiffBetweenDates(new Date('2017-12-13'), new Date('2017-12-22')); // 9
```