function getChanges(data = [], prevData = []) {
  const result = {}
  result.added = filter(data, (d) => !some(prevData, (p) => isEqual(d, p)))
  result.removed = filter(prevData, (p) => !some(data, (d) => isEqual(p, d)))
  return result
}
Get changes between two query settings arrays
@param {Array} data - Query settings array
@param {Array} prevData - Previous query settings array
@returns {object} Object containing added and removed value changes