code: function keyBy(arr, fn){
          var result = {};
          arr.forEach(function(v){
              result[fn(v)] = v;
          });
          return result;
      }
docs: Implementation of _.keyBy so old versions of lodash (<2.0.0) don't cause issues