code: function atom(type, actionParams) {
    var getNewState = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : assignData;
  
    if (typeof actionParams === 'function') {
      return (0, _createAtom2.default)({
        type: type,
        getNewState: actionParams
      });
    }
  
    return (0, _createAtom2.default)({
      type: type,
      actionParams: actionParams,
      getNewState: getNewState
    });
  }
docs: @param: type: String
  @param: actionParams: Array<String>
  @param: getNewState: Function: (state, action) => {}
  
  need at least 2 parameters