src/common/idb.js
function getAllCollections() {
  return getAllItems()
    .then(items => _.flatten(
      items.map(item => {
        return item.dataset.map(coll => {
          coll.instance = item.id;
          return coll;
        });
      })
    ));
}
function getAllCollections() {
  return getAllItems()
    .then(items => _.flatten(
      items.map(item => {
        return item.dataset.map(coll => {
          coll.instance = item.id;
          return coll;
        });
      })
    ));
}
function getAllCollections ( ) { return getAllItems ( ) . then ( items => _ . flatten ( items . map ( item => { return item . dataset . map ( coll => { coll . instance = item . id ; return coll ; } ) ; } ) ) ) ; }
Returns all collections in the store
@return {array} Collection objects
Returns all collections in the store