While reviewing Edit queues I often came across questions where people edit others' code. I generally rejects them as far as they are not about typos. But sometimes I encounter edits which are kind of updates to an answer, like the answer was posted in 2013 and was edited in 2018 which includes an updated way of doing the same thing that was asked in the question.
IMO, if instead of adding to the answer, they change the answer to the updated codes or text, I should reject it.
So what is the best action in this case?