can a front derailleur for a 12-21 speed bike work on a 10 speed?

my front derailleur broke today(SO LAME!!) but i found a new one on amazon pretty cheap, but it says it's for 12-21 speed bikes