Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Promise All
db.allDocs({include_docs: true}).then(function (result) {
return Promise.all( (row) {
return db.remove(row.doc);
}).then(function (arrayOfResults) {
// All docs have really been removed() now!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.