Takes a full name as string and returns it as an object containing
first and last name as separate strings. Useful for converting from database
to frontend UI.
Parameters
full_name: string
A string containing both first and last name.
format: boolean = true
Whether or not to format the output by capitalizing the first letter of the names. Optional and defaults to true.
Takes a full name as
stringand returns it as an object containing first and last name as separate strings. Useful for converting from database to frontend UI.