Merge pull request #1539 from nishanth2143/patch-1

typo
This commit is contained in:
Angelos Chalaris
2020-10-12 19:42:26 +03:00
committed by GitHub

View File

@ -12,7 +12,7 @@ Returns a date after adding given number of business days.
```js ```js
const addWeekDays = (startDate, count) => const addWeekDays = (startDate, count) =>
Array Array
.from({ length: businessDayCount }) .from({ length: count })
.reduce(date => { .reduce(date => {
date = new Date(date.setDate(date.getDate() + 1)); date = new Date(date.setDate(date.getDate() + 1));
if (date.getDay() % 6 === 0) if (date.getDay() % 6 === 0)