src/common/idb.js
function appendView(id, viewID, viewObj) {
  return updateItem(id, item => {
    const pos = item.views.findIndex(e => e.viewID === viewID);
    item.views.splice(pos + 1, 0, viewObj);
  });
}
function appendView(id, viewID, viewObj) {
  return updateItem(id, item => {
    const pos = item.views.findIndex(e => e.viewID === viewID);
    item.views.splice(pos + 1, 0, viewObj);
  });
}
function appendView ( id , viewID , viewObj ) { return updateItem ( id , item => { const pos = item . views . findIndex ( e => e . viewID === viewID ) ; item . views . splice ( pos + 1 , 0 , viewObj ) ; } ) ; }
Append a view next to a specific view
@param {string} id - Package instance ID
@param {string} viewID - view ID
@param {object} viewObj - view object
Append a view next to a specific view