src/DateSlider.js
/**
   * A pure function to generate an array of boolean values
   * that specify if one of the days of the week is selected.
   *
   * This array is to be used as a prop on the WeekView component.
   *
   * @param {moment} weekStartDate
   *  The start date of the week this is to be generated
   * @param {moment} startOfSelectedWeek
   *  The start of the week that contains the selectedDate
   * @param {moment} selectedDate
   *  The date that is selected
   * @param {number} isoStartDay
   *  The ISOWeekday number that starts the week being displayed (1 - 7)
   *
   * @returns {Array<boolean>}
   *
   * @memberof DateSlider
   */
A pure function to generate an array of boolean values
that specify if one of the days of the week is selected.

This array is to be used as a prop on the WeekView component.

@param {moment} weekStartDate
The start date of the week this is to be generated
@param {moment} startOfSelectedWeek
The start of the week that contains the selectedDate
@param {moment} selectedDate
The date that is selected
@param {number} isoStartDay
The ISOWeekday number that starts the week being displayed (1 - 7)

@returns {Array}


A pure function to generate an array of boolean values that specify if one of the days of the week is selected . This array is to be used as a prop on the WeekView component . @param { moment } weekStartDate The start date of the week this is to be generated @param { moment } startOfSelectedWeek The start of the week that contains the selectedDate @param { moment } selectedDate The date that is selected @param { number } isoStartDay The ISOWeekday number that starts the week being displayed ( 1 - 7 ) @returns { Array }
_generateArrSelected(
    weekStartDate,
    startOfSelectedWeek,
    selectedDate,
    isoStartDay
  ) {
    let result = [false, false, false, false, false, false, false];
    if (weekStartDate && weekStartDate.isSame(startOfSelectedWeek, "day")) {
      result[DateFns.getSelectedDayOfWeek(selectedDate, isoStartDay)] = true;
    }
    return result;
  }
_generateArrSelected ( weekStartDate , startOfSelectedWeek , selectedDate , isoStartDay ) { let result = [ false , false , false , false , false , false , false ] ; if ( weekStartDate && weekStartDate . isSame ( startOfSelectedWeek , "day" ) ) { result [ DateFns . getSelectedDayOfWeek ( selectedDate , isoStartDay ) ] = true ; } return result ; }
A pure function to generate an array of boolean values
 that specify if one of the days of the week is selected.
A pure function to generate an array of boolean values that specify if one of the days of the week is selected .