@pathmaker-digital/pmd-utilities - v2.2.6
    Preparing search index...

    Function splitFullName

    • 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.

      Returns Name

      Object containing separate first and last name.