I’d handle my anger by getting depressed. I was in no way capable of striking back at the object of my anger and it would have been extremely dangerous for me to do so then. My very existence would have been at stake. As they say, depression is anger turned inward and I was depressed for more years than I like thinking about.
It lifted gradually when I was old enough to have more agency in my life, and in small steps, I was able to tell that person that I knew what they’d done, even though they were trying to “gaslight” me; that I wasn’t going to put up with it anymore and I wasn’t going to talk to them anymore.
I did feel guilty about that for a while, but I’ve come to realize that if something or someone is upsetting me, I have to ask myself why and deal with that “why”.
In my case, I was not being treated with any respect for my self or my person and my anger was a catalyst to think about how I was being treated and to foster enough self-respect to remove myself from the situation, despite being taught that my job was to be loyal to the closed system and obey.
If it turns out a person’s angry because they aren’t getting their way, well, one isn’t always going to get their way. Sometimes, expectations need adjusting, and as @rooeytoo says, one has to know when to accept what can’t be changed.