This is the 379th most frequent Latvian word.
kādam
"To someone" or "to somebody."
The word 'kādam' is a dative singular form of 'kāds', signifying 'someone' in this question.
Vai es varu palīdzēt kādam?
Can I help someone?
'Kādam' is used in this sentence to indicate 'a certain' or 'some' when referencing 'friend', also dative singular.
Man patīk runāties ar kādam draugam.
I like chatting with a certain friend.
Here 'kādam' specifies an unspecified person (a student) from a broader category, in dative case to show to whom the book is recommended.