The ability to resist the variation of electric current is known as inductance. Because of the basic property of the inductor, it opposes the sudden change in current. If it doesn't oppose the current, then the voltage across the inductor should be infinite which is practicaly not possible with any finite source.