DEV Community

Discussion on: Which functions/methods do you...

Collapse
 
siddsarkar profile image
Siddhartha Sarkar

You must restrict your initials to some letter count either one or two, see your initial from the above fn will grow with no. of words in a name which is not favourable to be called 'initials'

And yes my country surnames is at last so picking the last one in my code 😅