ronantakizawa/codereview-bench huggingface dataset:
Repository: date-fns/date-fns
File: src/isMonday/index.ts (TypeScript)

Code before:
import toDate from '../toDate/index'
import requiredArgs from '../_lib/requiredArgs/index'

/**
 * @name isMonday
 * @category Weekday Helpers
 * @summary Is the given date Monday?
 *
 * @description
 * Is the given date Monday?
 *
 * ### v2.0.0 breaking changes:
 *
 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
 *
 * @param {Date|Number} dirtyDate - the date to check
 * @returns {Boolean} the date is Monday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // Is 22 September 2014 Monday?
 * var result = isMonday(new Date(2014, 8, 22))
 * //=> true
 */
export default function isMonday(dirtyDate: Date | number): boolean {
  requiredArgs(1, arguments)

  return toDate(dirtyDate).getDay() === 1
}


Review comment (suggestion):
Please leave it as is. In the code, the name makes sense because it highlights that the date is not converted yet (and not everywhere, here for example it could be simplidied), but in the docs, is just noise.

```suggestion
 * @param {Date|Number} date - the date to check
```

Code after:
import toDate from '../toDate/index'
import requiredArgs from '../_lib/requiredArgs/index'

/**
 * @name isMonday
 * @category Weekday Helpers
 * @summary Is the given date Monday?
 *
 * @description
 * Is the given date Monday?
 *
 * ### v2.0.0 breaking changes:
 *
 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
 *
 * @param {Date|Number} date - the date to check
 * @returns {Boolean} the date is Monday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // Is 22 September 2014 Monday?
 * var result = isMonday(new Date(2014, 8, 22))
 * //=> true
 */
export default function isMonday(date: Date | number): boolean {
  requiredArgs(1, arguments)

  return toDate(dirtyDate).getDay() === 1
}
Repository: date-fns/date-fns
File: src/isMonday/index.ts (TypeScript)

Code before:
import toDate from '../toDate/index'
import requiredArgs from '../_lib/requiredArgs/index'

/**
 * @name isMonday
 * @category Weekday Helpers
 * @summary Is the given date Monday?
 *
 * @description
 * Is the given date Monday?
 *
 * ### v2.0.0 breaking changes:
 *
 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
 *
 * @param {Date|Number} dirtyDate - the date to check
 * @returns {Boolean} the date is Monday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // Is 22 September 2014 Monday?
 * var result = isMonday(new Date(2014, 8, 22))
 * //=> true
 */
export default function isMonday(dirtyDate: Date | number): boolean {
  requiredArgs(1, arguments)

  return toDate(dirtyDate).getDay() === 1
}


Review comment (suggestion):
```suggestion
export default function isMonday(date: Date | number): boolean {
```

Code after:
import toDate from '../toDate/index'
import requiredArgs from '../_lib/requiredArgs/index'

/**
 * @name isMonday
 * @category Weekday Helpers
 * @summary Is the given date Monday?
 *
 * @description
 * Is the given date Monday?
 *
 * ### v2.0.0 breaking changes:
 *
 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
 *
 * @param {Date|Number} date - the date to check
 * @returns {Boolean} the date is Monday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // Is 22 September 2014 Monday?
 * var result = isMonday(new Date(2014, 8, 22))
 * //=> true
 */
export default function isMonday(date: Date | number): boolean {
  requiredArgs(1, arguments)

  return toDate(dirtyDate).getDay() === 1
}
Repository: date-fns/date-fns
File: src/isSameDay/index.ts (TypeScript)

Code before:
import startOfDay from '../startOfDay/index'
import requiredArgs from '../_lib/requiredArgs/index'

/**
 * @name isSameDay
 * @category Day Helpers
 * @summary Are the given dates in the same day?
 *
 * @description
 * Are the given dates in the same day?
 *
 * ### v2.0.0 breaking changes:
 *
 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
 *
 * @param {Date|Number} dateLeft - the first date to check
 * @param {Date|Number} dateRight - the second date to check
 * @returns {Boolean} the dates are in the same day
 * @throws {TypeError} 2 arguments required
 *
 * @example
 * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
 * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
 * //=> true
 */
export default function isSameDay(dirtyDateLeft: Date | number, dirtyDateRight: Date | number) {
  requiredArgs(2, arguments)

  const dateLeftStartOfDay = startOfDay(dirtyDateLeft)
  const dateRightStartOfDay = startOfDay(dirtyDateRight)

  return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime()
}


Review comment (suggestion):
Let's return type at function

```suggestion
export default function isSameDay(dirtyDateLeft: Date | number, dirtyDateRight: Date | number): boolean {
```

Code after:
import startOfDay from '../startOfDay/index'
import requiredArgs from '../_lib/requiredArgs/index'

/**
 * @name isSameDay
 * @category Day Helpers
 * @summary Are the given dates in the same day?
 *
 * @description
 * Are the given dates in the same day?
 *
 * ### v2.0.0 breaking changes:
 *
 * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
 *
 * @param {Date|Number} dateLeft - the first date to check
 * @param {Date|Number} dateRight - the second date to check
 * @returns {Boolean} the dates are in the same day
 * @throws {TypeError} 2 arguments required
 *
 * @example
 * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
 * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
 * //=> true
 */
export default function isSameDay(dirtyDateLeft: Date | number, dirtyDateRight: Date | number): boolean {
  requiredArgs(2, arguments)

  const dateLeftStartOfDay = startOfDay(dirtyDateLeft)
  const dateRightStartOfDay = startOfDay(dirtyDateRight)

  return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime()
}
Repository: date-fns/date-fns
File: src/nextSaturday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextSaturday
 * @category Weekday Helpers
 * @summary When is the next Saturday?
 *
 * @description
 * When is the next Saturday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Saturday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Saturday after Mar, 22, 2020?
 * const result = nextSaturday(new Date(2020, 2, 22))
 * => Sat Mar 28 2020 00:00:00
 **/

export default function nextSaturday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 6)
}


Review comment (suggestion):
`**/` hangs JSDoc parser, please replace it with `*/` here and everywhere (this is the correct JSDoc sequence `/** Comment */`.

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextSaturday
 * @category Weekday Helpers
 * @summary When is the next Saturday?
 *
 * @description
 * When is the next Saturday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Saturday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Saturday after Mar, 22, 2020?
 * const result = nextSaturday(new Date(2020, 2, 22))
 * //=> Sat Mar 28 2020 00:00:00
 */
export default function nextSaturday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 6)
}
Repository: date-fns/date-fns
File: src/nextFriday/test.ts (TypeScript)

Code before:
    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 21)),
      new Date(2020, 2 /* Mar */, 27)
    )

    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 20)),
      new Date(2020, 2 /* Mar */, 27)
    )

    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 19)),
      new Date(2020, 2 /* Mar */, 20)
    )

    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 18)),
      new Date(2020, 2 /* Mar */, 20)
    )

    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 17)),
      new Date(2020, 2 /* Mar */, 20)
    )
  })
  it('returns `Invalid Date` if the given date is invalid', function () {
    assert(nextFriday(new Date(NaN)) instanceof Date)
  })
})


Review comment (suggestion):
Please add space for consistency sake. Also in new tests code, we can use `() => {}`

```suggestion

  it('returns `Invalid Date` if the given date is invalid', () => {
```

Code after:
    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 21)),
      new Date(2020, 2 /* Mar */, 27)
    )

    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 20)),
      new Date(2020, 2 /* Mar */, 27)
    )

    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 19)),
      new Date(2020, 2 /* Mar */, 20)
    )

    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 18)),
      new Date(2020, 2 /* Mar */, 20)
    )

    assert.deepStrictEqual(
      nextFriday(new Date(2020, 2 /* Mar */, 17)),
      new Date(2020, 2 /* Mar */, 20)
    )
  })

  it('returns `Invalid Date` if the given date is invalid', () => {
    assert(nextFriday(new Date(NaN)) instanceof Date)
  })
})
Repository: date-fns/date-fns
File: src/nextFriday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Friday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * => Fri Mar 27 2020 00:00:00
 **/

export default function nextFriday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 5)
}


Review comment (suggestion):
Please remove space and `**/` (see my other comment about it with more details).

```suggestion
 */
export default function nextFriday(date: Date | number): Date {
```

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Friday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * //=> Fri Mar 27 2020 00:00:00
 */
export default function nextFriday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 5)
}
Repository: date-fns/date-fns
File: src/nextSaturday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextSaturday
 * @category Weekday Helpers
 * @summary When is the next Saturday?
 *
 * @description
 * When is the next Saturday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Saturday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Saturday after Mar, 22, 2020?
 * const result = nextSaturday(new Date(2020, 2, 22))
 * => Sat Mar 28 2020 00:00:00
 **/

export default function nextSaturday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 6)
}


Review comment (suggestion):
```suggestion
export default function nextSaturday(date: Date | number): Date {
```

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextSaturday
 * @category Weekday Helpers
 * @summary When is the next Saturday?
 *
 * @description
 * When is the next Saturday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Saturday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Saturday after Mar, 22, 2020?
 * const result = nextSaturday(new Date(2020, 2, 22))
 * //=> Sat Mar 28 2020 00:00:00
 */
export default function nextSaturday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 6)
}
Repository: date-fns/date-fns
File: src/nextFriday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Friday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * => Fri Mar 27 2020 00:00:00
 **/

export default function nextFriday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 5)
}


Review comment (suggestion):
I don't think it's still true

```suggestion
```

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Friday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * //=> Fri Mar 27 2020 00:00:00
 */
export default function nextFriday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 5)
}
Repository: date-fns/date-fns
File: src/nextFriday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Friday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * => Fri Mar 27 2020 00:00:00
 **/

export default function nextFriday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 5)
}


Review comment (suggestion):
```suggestion
 * @param {Date | number} date - the date to start counting from
```

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Friday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * //=> Fri Mar 27 2020 00:00:00
 */
export default function nextFriday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 5)
}
Repository: date-fns/date-fns
File: src/nextFriday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Friday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * => Fri Mar 27 2020 00:00:00
 **/

export default function nextFriday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 5)
}


Review comment (suggestion):
```suggestion
 * @returns {Date} the next Friday
```

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextFriday
 * @category Weekday Helpers
 * @summary When is the next Friday?
 *
 * @description
 * When is the next Friday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Friday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Friday after Mar, 22, 2020?
 * const result = nextFriday(new Date(2020, 2, 22))
 * //=> Fri Mar 27 2020 00:00:00
 */
export default function nextFriday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 5)
}
Repository: date-fns/date-fns
File: src/nextMonday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextMonday
 * @category Weekday Helpers
 * @summary When is the next Monday?
 *
 * @description
 * When is the next Monday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Monday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Monday after Mar, 22, 2020?
 * const result = nextMonday(new Date(2020, 2, 22))
 * => Mon Mar 23 2020 00:00:00
 **/
export default function nextMonday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 1)
}


Review comment (suggestion):
```suggestion
 * @param {Date | number} date - the date to start counting from
```

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextMonday
 * @category Weekday Helpers
 * @summary When is the next Monday?
 *
 * @description
 * When is the next Monday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Monday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Monday after Mar, 22, 2020?
 * const result = nextMonday(new Date(2020, 2, 22))
 * //=> Mon Mar 23 2020 00:00:00
 */
export default function nextMonday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 1)
}
Repository: date-fns/date-fns
File: src/nextMonday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextMonday
 * @category Weekday Helpers
 * @summary When is the next Monday?
 *
 * @description
 * When is the next Monday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Monday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Monday after Mar, 22, 2020?
 * const result = nextMonday(new Date(2020, 2, 22))
 * => Mon Mar 23 2020 00:00:00
 **/
export default function nextMonday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 1)
}


Review comment (suggestion):
```suggestion
 * @returns {Date} the next Monday
```

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextMonday
 * @category Weekday Helpers
 * @summary When is the next Monday?
 *
 * @description
 * When is the next Monday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Monday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Monday after Mar, 22, 2020?
 * const result = nextMonday(new Date(2020, 2, 22))
 * //=> Mon Mar 23 2020 00:00:00
 */
export default function nextMonday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 1)
}
Repository: date-fns/date-fns
File: src/nextSaturday/index.ts (TypeScript)

Code before:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextSaturday
 * @category Weekday Helpers
 * @summary When is the next Saturday?
 *
 * @description
 * When is the next Saturday?
 *
 * @param {Date | number} date the date to check
 * @returns {Date} the date is the next Saturday
 * @throws {TypeError} the date should be a valid date
 * @throws {TypeError} 1 argument required
 *
 * @example
 * When is the next Saturday after Mar, 22, 2020?
 * const result = nextSaturday(new Date(2020, 2, 22))
 * => Sat Mar 28 2020 00:00:00
 **/

export default function nextSaturday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 6)
}


Review comment (suggestion):
```suggestion
 * @param {Date | number} date - the date to start counting from
```

Code after:
import requiredArgs from '../_lib/requiredArgs/index'
import nextDay from '../nextDay/index'
import toDate from '../toDate/index'

/**
 * @name nextSaturday
 * @category Weekday Helpers
 * @summary When is the next Saturday?
 *
 * @description
 * When is the next Saturday?
 *
 * @param {Date | number} date - the date to start counting from
 * @returns {Date} the next Saturday
 * @throws {TypeError} 1 argument required
 *
 * @example
 * // When is the next Saturday after Mar, 22, 2020?
 * const result = nextSaturday(new Date(2020, 2, 22))
 * //=> Sat Mar 28 2020 00:00:00
 */
export default function nextSaturday(date: Date | number): Date {
  requiredArgs(1, arguments)
  return nextDay(toDate(date), 6)
}