lib/index.js
function actionCreator(type) {
  var props = Array.isArray(arguments[1]) ? arguments[1] : slice.call(arguments, 1)
  return function() {
    if (!props.length) {
      return {type: type}
    }
    var args = slice.call(arguments)
    return props.reduce(function(action, prop, index) {
      return (action[prop] = args[index], action)
    }, {type: type})
  }
}
function actionCreator(type) {
  var props = Array.isArray(arguments[1]) ? arguments[1] : slice.call(arguments, 1)
  return function() {
    if (!props.length) {
      return {type: type}
    }
    var args = slice.call(arguments)
    return props.reduce(function(action, prop, index) {
      return (action[prop] = args[index], action)
    }, {type: type})
  }
}
function actionCreator ( type ) { var props = Array . isArray ( arguments [ 1 ] ) ? arguments [ 1 ] : slice . call ( arguments , 1 ) return function ( ) { if ( ! props . length ) { return { type : type } } var args = slice . call ( arguments ) return props . reduce ( function ( action , prop , index ) { return ( action [ prop ] = args [ index ] , action ) } , { type : type } ) } }
Creates an action creator for the given action type, which optionally adds
positional arguments given to it to the action object using specified
property names.

Property names can be specified as an Array of strings or as any number of
addiitonal String arguments; arguments passed to the action creator will
be assigned to property names in the same order the names were given in.
Creates an action creator for the given action type which optionally adds positional arguments given to it to the action object using specified property names .