code: function createPersistConfig(persist, name) {
      switch (typeof persist === 'undefined' ? 'undefined' : _typeof(persist)) {
          case 'boolean':
              if (persist) {
                  persist = {
                      key: name,
                      storage: _storage2.default
                  };
              }
  
              break;
          case 'object':
              persist = _extends({
                  storage: _storage2.default
              }, persist, {
                  key: name
              });
  
              break;
      }
  
      return persist;
  }
docs: Convert true presits to config object