code: function updateCollection(id, collID, collObj) {
    return updateItem(id, item => {
      const pos = item.dataset.findIndex(e => e.collectionID === collID);
      if (_.isFunction(collObj)) {
        collObj(item.dataset[pos]);
      } else {
        item.dataset[pos] = collObj;
      }
    });
  }
docs: Update collection
  @param {string} id - Package instance ID
  @param {string} collID - Collection ID
  @param {object} collObj - Collection object or update function