PouchDb: Get change count since last synchronisation

Date: 2019-01-16
const lastSeqSynced = localStorage.getItem("last_seq");
const localDb = new PouchDB("my_db")
return Promise
    .resolve(localDb.changes({
        since: lastSeqSynced
    }).then(changes => {
        return changes.results.length;
    }));
17880cookie-checkPouchDb: Get change count since last synchronisation