Whereas a capacitor stores energy in as electrical charge and can be used to smooth out variations in voltage, an inductor stores energy as magnetic flux and tends to smooth out variations in current flow. In such an application it's often called a choke as it chokes variations in the flow.