The indirect object
'to / for whom'.
pomagać (help), dziękować (thank), dawać (give).
'It is X to me' constructions.