src/common/idb.js
function getView(id, viewID) {
  return getItem(id)
    .then(pkg => pkg.views.find(e => e.viewID === viewID));
}
function getView(id, viewID) {
  return getItem(id)
    .then(pkg => pkg.views.find(e => e.viewID === viewID));
}
function getView ( id , viewID ) { return getItem ( id ) . then ( pkg => pkg . views . find ( e => e . viewID === viewID ) ) ; }
Returns a view
@param {string} id - Package instance ID
@param {string} viewID - view ID
@return {array} view objects
Returns a view