code: function createMap(value) {
    const hasLength = hasOwnProperty(value, "length");
    const length = value.length;
  
    if (hasLength) {
      value.length = `${value.length}`;
    }
  
    let map = I.Seq(value)
      .map(fromJS)
      .toMap();
  
    if (hasLength) {
      map = map.set("length", length);
      value.length = length;
    }
  
    return map;
  }
docs: /*
  creates an immutable map, where each of the value's
  items are transformed into their own map.
  
  NOTE: we guard against `length` being a property because
  length confuses Immutable's internal algorithm.