code: function indexBy(array, propName) {
    var result = {};
    forEach(array, function(item) {
      result[item[propName]] = item;
    });
    return result;
  }
docs: like _.indexBy when you know that your index values will be unique, or you want last-one-in to win