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