dist/angular-webstorage.js
function (key, storageType) {

            var isStorageType = typeof storageType === 'undefined' ? false : true;

            if (isStorageType) {
                webStorage = $window[storageType];
                webStorage.removeItem(key);
            } else {
                webStorage = $window.sessionStorage;
                webStorage.removeItem(key);
                webStorage = $window.localStorage;
                webStorage.removeItem(key);
            }

            return true;
        }
function (key, storageType) {

            var isStorageType = typeof storageType === 'undefined' ? false : true;

            if (isStorageType) {
                webStorage = $window[storageType];
                webStorage.removeItem(key);
            } else {
                webStorage = $window.sessionStorage;
                webStorage.removeItem(key);
                webStorage = $window.localStorage;
                webStorage.removeItem(key);
            }

            return true;
        }
function ( key , storageType ) { var isStorageType = typeof storageType === 'undefined' ? false : true ; if ( isStorageType ) { webStorage = $window [ storageType ] ; webStorage . removeItem ( key ) ; } else { webStorage = $window . sessionStorage ; webStorage . removeItem ( key ) ; webStorage = $window . localStorage ; webStorage . removeItem ( key ) ; } return true ; }
/*
Remove an item from local storage
- key: key to retrieve data
- storageType: *optional* localStorage or sessionStorage
/ * Remove an item from local storage - key : key to retrieve data - storageType : * optional * localStorage or sessionStorage