code: function removeDuplicateObjectsFromArray(originalArray, prop) {
    var newArray = [];
    var lookupObject = {};
  
    for (var i in originalArray) {
      lookupObject[originalArray[i][prop]] = originalArray[i];
    }
  
    for (i in lookupObject) {
      newArray.push(lookupObject[i]);
    }
    return newArray;
  }
docs: utility function to help with removing duplicate objects (like shared dependencies)