Onions contain more than 25 different varieties of flavonoid antioxidants. A study showed that those with 613 mg intakes of anthocyanins per day are less likely to experience nonfatal heart attacks. In addition to that, anthocyanins have been proved to protect against certain kinds of cancer and diabetes.