Does a large or larger creature only partially in darkness see?

I don’t remember and cannot find the ruling anywhere. If a large or larger creature is in a darkness zone (magic or mundane) only partially, can it see or not? I think it can see but I’d like to be sure.