function generateAction(action, keys, values) {
  var generatedAction = Object.assign({}, action);
  keys.forEach(function (arg, index) {
    generatedAction[keys[index]] = values[index];
  });
  return generatedAction;
}
function generateAction(action, keys, values) {
  var generatedAction = Object.assign({}, action);
  keys.forEach(function (arg, index) {
    generatedAction[keys[index]] = values[index];
  });
  return generatedAction;
}
function generateAction ( action , keys , values ) { var generatedAction = Object . assign ( { } , action ) ; keys . forEach ( function ( arg , index ) { generatedAction [ keys [ index ] ] = values [ index ] ; } ) ; return generatedAction ; }
Generation a Redux action object
@param action
@param keys
@param args
@returns {*}
@private
Generation a Redux action object