get-nearest-day-of-week
The function return the date to get nearest day of week.
getNearestDayOfWeek(aDate, aDayOfWeek)
- parameters:
- aDate (Date|String): the date to search the nearest day.
- aDayOfWeek(Integer|Array): the nearest day of week(s).
- 1-7: Monday...Sunday
Usage
var getNearestDayOfWeek = //1-7: Monday...Sunday//=2016-9-18
License
MIT