src/index.js
function denormalizeIterable(items, entities, schema, bag) {
  const isMappable = typeof items.map === 'function';

  const itemSchema = Array.isArray(schema) ? schema[0] : schema.schema;

  // Handle arrayOf iterables
  if (isMappable) {
    return items.map(o => denormalize(o, entities, itemSchema, bag));
  }

  // Handle valuesOf iterables
  const denormalized = {};
  Object.keys(items).forEach((key) => {
    denormalized[key] = denormalize(items[key], entities, itemSchema, bag);
  });
  return denormalized;
}
function denormalizeIterable(items, entities, schema, bag) {
  const isMappable = typeof items.map === 'function';

  const itemSchema = Array.isArray(schema) ? schema[0] : schema.schema;

  // Handle arrayOf iterables
  if (isMappable) {
    return items.map(o => denormalize(o, entities, itemSchema, bag));
  }

  // Handle valuesOf iterables
  const denormalized = {};
  Object.keys(items).forEach((key) => {
    denormalized[key] = denormalize(items[key], entities, itemSchema, bag);
  });
  return denormalized;
}
function denormalizeIterable ( items , entities , schema , bag ) { const isMappable = typeof items . map === 'function' ; const itemSchema = Array . isArray ( schema ) ? schema [ 0 ] : schema . schema ; // Handle arrayOf iterables if ( isMappable ) { return items . map ( o => denormalize ( o , entities , itemSchema , bag ) ) ; } // Handle valuesOf iterables const denormalized = { } ; Object . keys ( items ) . forEach ( ( key ) => { denormalized [ key ] = denormalize ( items [ key ] , entities , itemSchema , bag ) ; } ) ; return denormalized ; }
Denormalizes each entity in the given array.

@param   {Array|Immutable.List} items
@param   {object|Immutable.Map} entities
@param   {schema.Entity} schema
@param   {object} bag
@returns {Array|Immutable.List}
Denormalizes each entity in the given array .