import { isArray, mergeWith, unionWith } from "lodash-es";
export const mergeComputePositionConfigs = (config1, config2) => mergeWith({}, config1, config2, (objValue, srcValue) => {
if (isArray(objValue)) {
return unionWith(srcValue, objValue, (a, b) => a.name === b.name);
}
});