code: function getGoodAdds(complexArray, adds) {
      // remove any that are already added here
      return adds.filter(function (a) {
        return a.parent !== complexArray.parent;
      });
    }
docs: local functions