Skip to main content

getNames

Stentor API Reference


Stentor API Reference / stentor-utils/src / getNames

Function: getNames()

getNames(fields?): LeadNames

Defined in: packages/stentor-utils/src/lead.ts:115

Resolves the first, last and full name off a lead's fields, filling in whichever is missing from whichever is present.

An explicit first or last name wins over the full_name split; the split only supplies the part that is missing. Anything unresolvable is undefined. See the module doc comment for why.

Parameters​

fields?​

LeadFields

Returns​

LeadNames