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