Corey Perkins allegedly used the stun gun on the woman while trying to take her purse Monday afternoon.
The woman was robbed as she walked in the 4400-block of West Armitage in the Hermosa neighborhood.
Witnesses caught her attacker and held him until police arrived.
Police say the woman identified Perkins as the person who robbed her. She was not seriously hurt.