Peter Beinart observes that the Electoral College was meant to stop men like Trump from becoming president. Although he recognizes the potential "anti-democratic nature" of the Electoral College, he also notes that:
Donald Trump was not elected on November 8. Under the Constitution, the real election will occur on December 19. That's when the electors in each state cast their votes. [...]
The electors, Hamilton believed, would prevent someone with "talents for low intrigue, and the little arts of popularity" from becoming president. And they would combat "the desire in foreign powers to gain an improper ascendant in our councils." They would prevent America's adversaries from meddling in its elections. The founders created the Electoral College, in other words, in part to prevent the election of someone like Donald Trump. [...]
When George W. Bush became president after losing the popular vote in 2000, there were protests, but no real question about the inevitability of his taking office. In this way, as in many others, Americans comfortably accept undemocratic elements of America's system of government even as they profess publicly that democracy is sacrosanct.
Beinart admits that, "Before this election, I supported abolishing the Electoral College. Now I think America needs electors who, in times of national emergency, can prevent demagogues from taking power."