whole_func_string: function convertToObject(itemArr) {
    var obj = {};
    _.each(itemArr, function(item) {
      obj[item.uid] = item;
    });
    return obj;
  }
func_code_string: function convertToObject(itemArr) {
    var obj = {};
    _.each(itemArr, function(item) {
      obj[item.uid] = item;
    });
    return obj;
  }
func_documentation_string: convert the given array to an object, use the `uid` field of each item as the key
  @param {Array} itemArr
  @returns an object