Always try to assess the situation before reacting. Of course I am not flawless, and was far less so in my past. I had plenty to be angry about. My mother used to joke that kids would line up around the block to beat me up, which was too close to the truth for my comfort. There was a lot of things that frustrated me in my early childhood.
Anger is frustration.
Usually you are a frustrated about someone's actions, and so you get angry with them. Recognize that it is your frustration causing you to react. It worked, more or less, but there were enough stupid bullies that each had to learn the lesson one at a time to keep me in trouble. One of the problems with anger is that it is often held in, and misplaced. That is not right.