src/common/idb.js
function getCollection(id, collID) {
  return getItem(id)
    .then(pkg => pkg.dataset.find(e => e.collectionID === collID));
}
function getCollection(id, collID) {
  return getItem(id)
    .then(pkg => pkg.dataset.find(e => e.collectionID === collID));
}
function getCollection ( id , collID ) { return getItem ( id ) . then ( pkg => pkg . dataset . find ( e => e . collectionID === collID ) ) ; }
Returns a collection
@param {string} id - Package instance ID
@param {string} collID - Collection ID
@return {array} Collection objects
Returns a collection