function clear() {
      return new Promise(function (resolve, reject) {
        try {
          window.localStorage.clear();
          resolve(null);
        } catch (err) {
          reject(err);
        }
      });
    }
/**
     * Erases *all* AsyncStorage for the domain.
     */
Erases *all* AsyncStorage for the domain.
Erases * all * AsyncStorage for the domain .
function clear() {
      return new Promise(function (resolve, reject) {
        try {
          window.localStorage.clear();
          resolve(null);
        } catch (err) {
          reject(err);
        }
      });
    }
function clear ( ) { return new Promise ( function ( resolve , reject ) { try { window . localStorage . clear ( ) ; resolve ( null ) ; } catch ( err ) { reject ( err ) ; } } ) ; }
Erases *all* AsyncStorage for the domain.
Erases * all * AsyncStorage for the domain .