lib/store/utils/createPersistConfig.js
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;
}
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;
}
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 ; }
Convert true presits to config object
Convert true presits to config object