code: function buildFromArray({ declaration, name, mapActionType }) {
    if (Array.isArray(declaration)) {
      return (...args) => declaration.reduce(
        (result, key, index) => Object.assign(
          result,
          { [key]: args[index] }
        ),
        { type: mapActionType(name) }
      );
    }
    return null;
  }
docs: Arrays -> simple action creators with multiple arguments