function createActionWithPayload(actionName, key, payload) {
  const action = {
    type: actionName
  };
  action[key] = payload;
  return action;
}
/**
 * Returns an action with specified type and payload
 *
 * @param {String} actionName The type of action.
 * @param {String} key The field name for the payload
 * @param {Object} payload The value of the key
 * @returns {Object} The returned action
 */
Returns an action with specified type and payload
@param {String} actionName The type of action.
@param {String} key The field name for the payload
@param {Object} payload The value of the key
@returns {Object} The returned action
Returns an action with specified type and payload @param { String } actionName The type of action . @param { String } key The field name for the payload @param { Object } payload The value of the key @returns { Object } The returned action
function createActionWithPayload(actionName, key, payload) {
  const action = {
    type: actionName
  };
  action[key] = payload;
  return action;
}
function createActionWithPayload ( actionName , key , payload ) { const action = { type : actionName } ; action [ key ] = payload ; return action ; }
Returns an action with specified type and payload
 @param {String} actionName The type of action.
Returns an action with specified type and payload @param { String } actionName The type of action .