According to the American Sleep Association, bananas have nutrients, such as potassium, magnesium, and tryptophan, which may help improve sleep (16). However, more research is needed, and it is not known if these effects are also seen in babies.