I had a small, very small epiphany earlier this morning. In the midst of my daily habit of having internal conversations with myself (I'm not crazy I swear), I realized that in the past several months I have become a better version of myself because of people who have treated me horribly. (Obviously not only because of these people, but partly for sure.)
By "better version of myself," I mean after all the drama and during the dark-place-where-you-try-to-get-over-the-end-of-the-friendships phase, I took a hard look at myself and figured out what I needed to do. I didn't want to come out of the phase a broken person with the permanent fear of making new friends, because that would only make me a paralyzed person for the rest of my life. I instead wanted to come out a better person who grew from the experiences and the lessons drawn out of them.
With that, I slowly but surely moved on.
Also, one thing that surprised me in the process was how I also became a better version of myself from the new habits I developed unexpectedly. An example is my now-nearly-obsessive habit of writing poetry. After a bad experience I had with one of my ex-friends, my instinct told me to write a poem. I found that it helped me get over the pain and gradually move on with my life. Before I knew it, I bought myself a poetry journal and since then I've been writing poetry almost daily, during good times and bad.
There will be cases in your life where those who have treated you the worst will push you to make a leap towards the better. Though, of course, whether you leap towards the better or towards the worse depends on your own personal choice.