src/utils/object.js
function deepCollection(collectionId, obj) {
  const pathBits = idKeys(collectionId);
  pathBits.pop();
  pathBits.push('collection');
  pathBits.shift();
  return deepObj(pathBits, obj, false);
}
function deepCollection(collectionId, obj) {
  const pathBits = idKeys(collectionId);
  pathBits.pop();
  pathBits.push('collection');
  pathBits.shift();
  return deepObj(pathBits, obj, false);
}
function deepCollection ( collectionId , obj ) { const pathBits = idKeys ( collectionId ) ; pathBits . pop ( ) ; pathBits . push ( 'collection' ) ; pathBits . shift ( ) ; return deepObj ( pathBits , obj , false ) ; }
Given a nested pattern `obj` and a `patternId`, find its collection
in the object `obj`.
@see deepPattern
Given a nested pattern obj and a patternId find its collection in the object obj .