async function deleteDatabase(dbName) {
  return new Promise((resolve, reject) => {
    const request = indexedDB.deleteDatabase(dbName);
    request.onsuccess = event => resolve(event.target);
    request.onerror = event => reject(event.target.error);
  });
}
/**
 * Helper to wrap the deletion of an IndexedDB database into a promise.
 *
 * @param dbName {String} the database to delete
 * @return {Promise}
 */
Helper to wrap the deletion of an IndexedDB database into a promise.
@param dbName {String} the database to delete
@return {Promise}
Helper to wrap the deletion of an IndexedDB database into a promise . @param dbName { String } the database to delete @return { Promise }
async function deleteDatabase(dbName) {
  return new Promise((resolve, reject) => {
    const request = indexedDB.deleteDatabase(dbName);
    request.onsuccess = event => resolve(event.target);
    request.onerror = event => reject(event.target.error);
  });
}
async function deleteDatabase ( dbName ) { return new Promise ( ( resolve , reject ) => { const request = indexedDB . deleteDatabase ( dbName ) ; request . onsuccess = event => resolve ( event . target ) ; request . onerror = event => reject ( event . target . error ) ; } ) ; }
Helper to wrap the deletion of an IndexedDB database into a promise.
Helper to wrap the deletion of an IndexedDB database into a promise .