src/reducers/visibility-filter.js
function visibilityFilter(state = SHOW_ALL, action = {}) {
    const {type, filter} = action;
    switch (type) {
        case SET_VISIBILITY_FILTER:
            return filter;
        default:
            return state;
    }
}
function visibilityFilter(state = SHOW_ALL, action = {}) {
    const {type, filter} = action;
    switch (type) {
        case SET_VISIBILITY_FILTER:
            return filter;
        default:
            return state;
    }
}
function visibilityFilter ( state = SHOW_ALL , action = { } ) { const { type , filter } = action ; switch ( type ) { case SET_VISIBILITY_FILTER : return filter ; default : return state ; } }
reducer in charge of dealing with the visibility filter.
reducer in charge of dealing with the visibility filter .