function comments (state = initialComments, action) {
  switch (action.type) {
    case GET_COMMENTS : return getComments (state, action)
    case ADD_COMMENT : return addComment (state, action)
    case EDIT_COMMENT : return editComment (state, action)
    case UPDOWNVOTE : return upDownVote (state, action)
    case REMOVE_COMMENT : return removeComment (state, action)
    default : return state
  }
}
/**
 * @description Reducer for comment
 * @param {Object} state - Contains information about the comments
 * @param {Object} action - Contains information about what action is executed
 */
@description Reducer for comment
@param {Object} state - Contains information about the comments
@param {Object} action - Contains information about what action is executed
@description Reducer for comment @param { Object } state - Contains information about the comments @param { Object } action - Contains information about what action is executed
function comments (state = initialComments, action) {
  switch (action.type) {
    case GET_COMMENTS : return getComments (state, action)
    case ADD_COMMENT : return addComment (state, action)
    case EDIT_COMMENT : return editComment (state, action)
    case UPDOWNVOTE : return upDownVote (state, action)
    case REMOVE_COMMENT : return removeComment (state, action)
    default : return state
  }
}
function comments ( state = initialComments , action ) { switch ( action . type ) { case GET_COMMENTS : return getComments ( state , action ) case ADD_COMMENT : return addComment ( state , action ) case EDIT_COMMENT : return editComment ( state , action ) case UPDOWNVOTE : return upDownVote ( state , action ) case REMOVE_COMMENT : return removeComment ( state , action ) default : return state } }
@description Reducer for comment
 @param {Object} state - Contains information about the comments
 @param {Object} action - Contains information about what action is executed
@description Reducer for comment @param { Object } state - Contains information about the comments @param { Object } action - Contains information about what action is executed