Cooking methods such as boiling or microwaving can lead to some loss of vitamin B6 in foods, but steaming or stir-frying may preserve more of its content.