The study, published in Appetite, examined data collected during a previous study in which people were measured for dietary intake and risk factors for cardiovascular disease. Participants were also given a series of tests designed to measure cognitive function. 

"More frequent chocolate consumption was significantly associated with better performance on (tests, including) visual-spatial memory and organization, working memory, scanning and tracking, abstract reasoning and the mini-mental state examination," researchers said.