Suppose we have to compare two JSON objects and check for the key/values that are different in both objects, Compare Object block comes into use here. The output of compare object block might have null properties that means it can contain certain keys with null values. In order to get rid of these null properties we just use the 'Remove Empty Properties' formula available in the editor.
This would be useful when we are trying to update an endpoint based on the changes of source data with destination data where we will be comparing both and checking for the key/values that are different in both objects(source and destination). This will give an output object if there are different values for the same keys in both objects. There might be some fields that are missing in source data which would get listed out in the output of the compare object block. If you are trying to update an endpoint by checking if the output from compare object block is not empty that is updating an endpoint only if there is a difference between source and destination data this might cause an issue since compare object output will always list out null properties if there are missing fields in source data. In that case, add the 'Remove Empty Properties' formula to the output of compare object block.