Anorexic friend with irregular heartbeat? Could it be dangerous?

Arrhythmia. Anorexia and malnutrition, particularly with associated emesis can lead to electrolyte abnormalities, such as low potassium and magnesium that can trigger arrhythmias.