Get the initials from a string
getInitials('John Doe') // 'JD' Copy
getInitials('John Doe') // 'JD'
Optional
A string to get the initials from
The maximum number of initials to return
The initials from the string
Get the initials from a string
Example