lib/parsers.js
function parseRelations(response) {
  let entities = {};
  Object.keys(response).forEach(key => {
    entities[key] = parseRelation(response[key]);
  });
  return entities;
}
function parseRelations(response) {
  let entities = {};
  Object.keys(response).forEach(key => {
    entities[key] = parseRelation(response[key]);
  });
  return entities;
}
function parseRelations ( response ) { let entities = { } ; Object . keys ( response ) . forEach ( key => { entities [ key ] = parseRelation ( response [ key ] ) ; } ) ; return entities ; }
Parse a collection of relations.
@param {Object} response - The collection, containing relations as described
in parseRelation().
@returns {Object} The parsed collection, containing relations as described
in parseRelation().
Parse a collection of relations .