code: function select(state) {
      const {notificationList, visibilityFilter, ...otherStateProperties} = state;
      return {
          //select the notification list from the state
          notificationList: selectNotifications(notificationList, visibilityFilter),
          visibilityFilter,
          ...otherStateProperties
      };
  }
docs: Select the part of the state.