You'll probably notice that most cupcake and cake recipes require salt. This is because not only does it elevate the flavor of the rest of the cupcake, but it also counteracts the amount of sweetness in the batter to ensure your cupcakes aren't too sweet. It's also why salt is often added to varying types of frosting too.